ultracart_rest_api_v2_typescript 3.10.111 → 3.10.112
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 +307 -0
- package/dist/api.d.ts +180 -0
- package/dist/api.js +191 -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.112
|
|
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.112 --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.112 | 02/01/2023 | convo - agent profile get/update methods |
|
|
57
58
|
| 3.10.111 | 01/27/2023 | convo - added event_engage_customer property to message |
|
|
58
59
|
| 3.10.110 | 01/27/2023 | conversations - getLocationsForEngagement method |
|
|
59
60
|
| 3.10.109 | 01/26/2023 | typo in ConversationWebsocketMessage |
|
package/api.ts
CHANGED
|
@@ -6754,6 +6754,110 @@ export interface ConversationAgentAuthResponse {
|
|
|
6754
6754
|
warning?: Warning;
|
|
6755
6755
|
}
|
|
6756
6756
|
|
|
6757
|
+
/**
|
|
6758
|
+
*
|
|
6759
|
+
* @export
|
|
6760
|
+
* @interface ConversationAgentProfile
|
|
6761
|
+
*/
|
|
6762
|
+
export interface ConversationAgentProfile {
|
|
6763
|
+
/**
|
|
6764
|
+
* The number of engagement chats that can be pushed on them at any given time.
|
|
6765
|
+
* @type {number}
|
|
6766
|
+
* @memberof ConversationAgentProfile
|
|
6767
|
+
*/
|
|
6768
|
+
chat_limit?: number;
|
|
6769
|
+
/**
|
|
6770
|
+
* The default language the agent is chatting in
|
|
6771
|
+
* @type {string}
|
|
6772
|
+
* @memberof ConversationAgentProfile
|
|
6773
|
+
*/
|
|
6774
|
+
default_language_iso_code?: string;
|
|
6775
|
+
/**
|
|
6776
|
+
* Default status when the agent loads conversations app.
|
|
6777
|
+
* @type {string}
|
|
6778
|
+
* @memberof ConversationAgentProfile
|
|
6779
|
+
*/
|
|
6780
|
+
default_status?: ConversationAgentProfile.DefaultStatusEnum;
|
|
6781
|
+
/**
|
|
6782
|
+
* An alternate name that the agent wants to use in chat.
|
|
6783
|
+
* @type {string}
|
|
6784
|
+
* @memberof ConversationAgentProfile
|
|
6785
|
+
*/
|
|
6786
|
+
display_name?: string;
|
|
6787
|
+
/**
|
|
6788
|
+
* Their actual user name for profile settings display as placeholder test
|
|
6789
|
+
* @type {string}
|
|
6790
|
+
* @memberof ConversationAgentProfile
|
|
6791
|
+
*/
|
|
6792
|
+
name?: string;
|
|
6793
|
+
/**
|
|
6794
|
+
* An upload key used to update the profile image.
|
|
6795
|
+
* @type {string}
|
|
6796
|
+
* @memberof ConversationAgentProfile
|
|
6797
|
+
*/
|
|
6798
|
+
profile_image_upload_key?: string;
|
|
6799
|
+
/**
|
|
6800
|
+
* Their current profile image URL
|
|
6801
|
+
* @type {string}
|
|
6802
|
+
* @memberof ConversationAgentProfile
|
|
6803
|
+
*/
|
|
6804
|
+
profile_image_url?: string;
|
|
6805
|
+
}
|
|
6806
|
+
|
|
6807
|
+
/**
|
|
6808
|
+
* @export
|
|
6809
|
+
* @namespace ConversationAgentProfile
|
|
6810
|
+
*/
|
|
6811
|
+
export namespace ConversationAgentProfile {
|
|
6812
|
+
/**
|
|
6813
|
+
* @export
|
|
6814
|
+
* @enum {string}
|
|
6815
|
+
*/
|
|
6816
|
+
export enum DefaultStatusEnum {
|
|
6817
|
+
Available = <any> 'available',
|
|
6818
|
+
Busy = <any> 'busy',
|
|
6819
|
+
Unavailable = <any> 'unavailable'
|
|
6820
|
+
}
|
|
6821
|
+
}
|
|
6822
|
+
|
|
6823
|
+
/**
|
|
6824
|
+
*
|
|
6825
|
+
* @export
|
|
6826
|
+
* @interface ConversationAgentProfileResponse
|
|
6827
|
+
*/
|
|
6828
|
+
export interface ConversationAgentProfileResponse {
|
|
6829
|
+
/**
|
|
6830
|
+
*
|
|
6831
|
+
* @type {ConversationAgentProfile}
|
|
6832
|
+
* @memberof ConversationAgentProfileResponse
|
|
6833
|
+
*/
|
|
6834
|
+
agent_profile?: ConversationAgentProfile;
|
|
6835
|
+
/**
|
|
6836
|
+
*
|
|
6837
|
+
* @type {ModelError}
|
|
6838
|
+
* @memberof ConversationAgentProfileResponse
|
|
6839
|
+
*/
|
|
6840
|
+
error?: ModelError;
|
|
6841
|
+
/**
|
|
6842
|
+
*
|
|
6843
|
+
* @type {ResponseMetadata}
|
|
6844
|
+
* @memberof ConversationAgentProfileResponse
|
|
6845
|
+
*/
|
|
6846
|
+
metadata?: ResponseMetadata;
|
|
6847
|
+
/**
|
|
6848
|
+
* Indicates if API call was successful
|
|
6849
|
+
* @type {boolean}
|
|
6850
|
+
* @memberof ConversationAgentProfileResponse
|
|
6851
|
+
*/
|
|
6852
|
+
success?: boolean;
|
|
6853
|
+
/**
|
|
6854
|
+
*
|
|
6855
|
+
* @type {Warning}
|
|
6856
|
+
* @memberof ConversationAgentProfileResponse
|
|
6857
|
+
*/
|
|
6858
|
+
warning?: Warning;
|
|
6859
|
+
}
|
|
6860
|
+
|
|
6757
6861
|
/**
|
|
6758
6862
|
*
|
|
6759
6863
|
* @export
|
|
@@ -44153,6 +44257,52 @@ export const ConversationApiFetchParamCreator = function (configuration?: Config
|
|
|
44153
44257
|
options: localVarRequestOptions,
|
|
44154
44258
|
};
|
|
44155
44259
|
},
|
|
44260
|
+
/**
|
|
44261
|
+
* Retrieve the agents profile
|
|
44262
|
+
* @summary Get agent profile
|
|
44263
|
+
* @param {*} [options] Override http request option.
|
|
44264
|
+
* @throws {RequiredError}
|
|
44265
|
+
*/
|
|
44266
|
+
getAgentProfile(options: any = {}): FetchArgs {
|
|
44267
|
+
const localVarPath = `/conversation/agent/profile`;
|
|
44268
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
44269
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
44270
|
+
const localVarHeaderParameter = {} as any;
|
|
44271
|
+
const localVarQueryParameter = {} as any;
|
|
44272
|
+
|
|
44273
|
+
if(configuration && configuration.apiVersion) {
|
|
44274
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
44275
|
+
}
|
|
44276
|
+
|
|
44277
|
+
|
|
44278
|
+
|
|
44279
|
+
// authentication ultraCartOauth required
|
|
44280
|
+
// oauth required
|
|
44281
|
+
if (configuration && configuration.accessToken) {
|
|
44282
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
44283
|
+
? configuration.accessToken("ultraCartOauth", ["conversation_read"])
|
|
44284
|
+
: configuration.accessToken;
|
|
44285
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
44286
|
+
}
|
|
44287
|
+
|
|
44288
|
+
// authentication ultraCartSimpleApiKey required
|
|
44289
|
+
if (configuration && configuration.apiKey) {
|
|
44290
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
44291
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
44292
|
+
: configuration.apiKey;
|
|
44293
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
44294
|
+
}
|
|
44295
|
+
|
|
44296
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
44297
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
44298
|
+
delete localVarUrlObj.search;
|
|
44299
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
44300
|
+
|
|
44301
|
+
return {
|
|
44302
|
+
url: url.format(localVarUrlObj),
|
|
44303
|
+
options: localVarRequestOptions,
|
|
44304
|
+
};
|
|
44305
|
+
},
|
|
44156
44306
|
/**
|
|
44157
44307
|
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
44158
44308
|
* @summary Get agent websocket authorization
|
|
@@ -45409,6 +45559,61 @@ export const ConversationApiFetchParamCreator = function (configuration?: Config
|
|
|
45409
45559
|
options: localVarRequestOptions,
|
|
45410
45560
|
};
|
|
45411
45561
|
},
|
|
45562
|
+
/**
|
|
45563
|
+
* Update agent profile
|
|
45564
|
+
* @summary Update agent profile
|
|
45565
|
+
* @param {ConversationAgentProfile} profile_request Profile request
|
|
45566
|
+
* @param {*} [options] Override http request option.
|
|
45567
|
+
* @throws {RequiredError}
|
|
45568
|
+
*/
|
|
45569
|
+
updateAgentProfile(profile_request: ConversationAgentProfile, options: any = {}): FetchArgs {
|
|
45570
|
+
// verify required parameter 'profile_request' is not null or undefined
|
|
45571
|
+
if (profile_request === null || profile_request === undefined) {
|
|
45572
|
+
throw new RequiredError('profile_request','Required parameter profile_request was null or undefined when calling updateAgentProfile.');
|
|
45573
|
+
}
|
|
45574
|
+
const localVarPath = `/conversation/agent/profile`;
|
|
45575
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
45576
|
+
const localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
|
|
45577
|
+
const localVarHeaderParameter = {} as any;
|
|
45578
|
+
const localVarQueryParameter = {} as any;
|
|
45579
|
+
|
|
45580
|
+
if(configuration && configuration.apiVersion) {
|
|
45581
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
45582
|
+
}
|
|
45583
|
+
|
|
45584
|
+
|
|
45585
|
+
|
|
45586
|
+
// authentication ultraCartOauth required
|
|
45587
|
+
// oauth required
|
|
45588
|
+
if (configuration && configuration.accessToken) {
|
|
45589
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
45590
|
+
? configuration.accessToken("ultraCartOauth", ["conversation_write"])
|
|
45591
|
+
: configuration.accessToken;
|
|
45592
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
45593
|
+
}
|
|
45594
|
+
|
|
45595
|
+
// authentication ultraCartSimpleApiKey required
|
|
45596
|
+
if (configuration && configuration.apiKey) {
|
|
45597
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
45598
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
45599
|
+
: configuration.apiKey;
|
|
45600
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
45601
|
+
}
|
|
45602
|
+
|
|
45603
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
45604
|
+
|
|
45605
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
45606
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
45607
|
+
delete localVarUrlObj.search;
|
|
45608
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
45609
|
+
const needsSerialization = (<any>"ConversationAgentProfile" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
45610
|
+
localVarRequestOptions.body = needsSerialization ? JSON.stringify(profile_request || {}) : (profile_request || "");
|
|
45611
|
+
|
|
45612
|
+
return {
|
|
45613
|
+
url: url.format(localVarUrlObj),
|
|
45614
|
+
options: localVarRequestOptions,
|
|
45615
|
+
};
|
|
45616
|
+
},
|
|
45412
45617
|
/**
|
|
45413
45618
|
* Update a canned message
|
|
45414
45619
|
* @summary Update a canned message
|
|
@@ -45745,6 +45950,26 @@ export const ConversationApiFp = function(configuration?: Configuration) {
|
|
|
45745
45950
|
});
|
|
45746
45951
|
};
|
|
45747
45952
|
},
|
|
45953
|
+
/**
|
|
45954
|
+
* Retrieve the agents profile
|
|
45955
|
+
* @summary Get agent profile
|
|
45956
|
+
* @param {*} [options] Override http request option.
|
|
45957
|
+
* @throws {RequiredError}
|
|
45958
|
+
*/
|
|
45959
|
+
getAgentProfile(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationAgentProfileResponse> {
|
|
45960
|
+
const localVarFetchArgs = ConversationApiFetchParamCreator(configuration).getAgentProfile(options);
|
|
45961
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
45962
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
45963
|
+
|
|
45964
|
+
if (response.status >= 200 && response.status < 300) {
|
|
45965
|
+
return response.json();
|
|
45966
|
+
|
|
45967
|
+
} else {
|
|
45968
|
+
throw response;
|
|
45969
|
+
}
|
|
45970
|
+
});
|
|
45971
|
+
};
|
|
45972
|
+
},
|
|
45748
45973
|
/**
|
|
45749
45974
|
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
45750
45975
|
* @summary Get agent websocket authorization
|
|
@@ -46248,6 +46473,27 @@ export const ConversationApiFp = function(configuration?: Configuration) {
|
|
|
46248
46473
|
});
|
|
46249
46474
|
};
|
|
46250
46475
|
},
|
|
46476
|
+
/**
|
|
46477
|
+
* Update agent profile
|
|
46478
|
+
* @summary Update agent profile
|
|
46479
|
+
* @param {ConversationAgentProfile} profile_request Profile request
|
|
46480
|
+
* @param {*} [options] Override http request option.
|
|
46481
|
+
* @throws {RequiredError}
|
|
46482
|
+
*/
|
|
46483
|
+
updateAgentProfile(profile_request: ConversationAgentProfile, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationAgentProfileResponse> {
|
|
46484
|
+
const localVarFetchArgs = ConversationApiFetchParamCreator(configuration).updateAgentProfile(profile_request, options);
|
|
46485
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
46486
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
46487
|
+
|
|
46488
|
+
if (response.status >= 200 && response.status < 300) {
|
|
46489
|
+
return response.json();
|
|
46490
|
+
|
|
46491
|
+
} else {
|
|
46492
|
+
throw response;
|
|
46493
|
+
}
|
|
46494
|
+
});
|
|
46495
|
+
};
|
|
46496
|
+
},
|
|
46251
46497
|
/**
|
|
46252
46498
|
* Update a canned message
|
|
46253
46499
|
* @summary Update a canned message
|
|
@@ -46384,6 +46630,15 @@ export const ConversationApiFactory = function (configuration?: Configuration, f
|
|
|
46384
46630
|
getAgentKeepAlive(options?: any) {
|
|
46385
46631
|
return ConversationApiFp(configuration).getAgentKeepAlive(options)(fetch, basePath);
|
|
46386
46632
|
},
|
|
46633
|
+
/**
|
|
46634
|
+
* Retrieve the agents profile
|
|
46635
|
+
* @summary Get agent profile
|
|
46636
|
+
* @param {*} [options] Override http request option.
|
|
46637
|
+
* @throws {RequiredError}
|
|
46638
|
+
*/
|
|
46639
|
+
getAgentProfile(options?: any) {
|
|
46640
|
+
return ConversationApiFp(configuration).getAgentProfile(options)(fetch, basePath);
|
|
46641
|
+
},
|
|
46387
46642
|
/**
|
|
46388
46643
|
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
46389
46644
|
* @summary Get agent websocket authorization
|
|
@@ -46623,6 +46878,16 @@ export const ConversationApiFactory = function (configuration?: Configuration, f
|
|
|
46623
46878
|
startConversation(start_request: ConversationStartRequest, options?: any) {
|
|
46624
46879
|
return ConversationApiFp(configuration).startConversation(start_request, options)(fetch, basePath);
|
|
46625
46880
|
},
|
|
46881
|
+
/**
|
|
46882
|
+
* Update agent profile
|
|
46883
|
+
* @summary Update agent profile
|
|
46884
|
+
* @param {ConversationAgentProfile} profile_request Profile request
|
|
46885
|
+
* @param {*} [options] Override http request option.
|
|
46886
|
+
* @throws {RequiredError}
|
|
46887
|
+
*/
|
|
46888
|
+
updateAgentProfile(profile_request: ConversationAgentProfile, options?: any) {
|
|
46889
|
+
return ConversationApiFp(configuration).updateAgentProfile(profile_request, options)(fetch, basePath);
|
|
46890
|
+
},
|
|
46626
46891
|
/**
|
|
46627
46892
|
* Update a canned message
|
|
46628
46893
|
* @summary Update a canned message
|
|
@@ -46715,6 +46980,15 @@ export interface ConversationApiInterface {
|
|
|
46715
46980
|
*/
|
|
46716
46981
|
getAgentKeepAlive(options?: any): Promise<{}>;
|
|
46717
46982
|
|
|
46983
|
+
/**
|
|
46984
|
+
* Retrieve the agents profile
|
|
46985
|
+
* @summary Get agent profile
|
|
46986
|
+
* @param {*} [options] Override http request option.
|
|
46987
|
+
* @throws {RequiredError}
|
|
46988
|
+
* @memberof ConversationApiInterface
|
|
46989
|
+
*/
|
|
46990
|
+
getAgentProfile(options?: any): Promise<ConversationAgentProfileResponse>;
|
|
46991
|
+
|
|
46718
46992
|
/**
|
|
46719
46993
|
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
46720
46994
|
* @summary Get agent websocket authorization
|
|
@@ -46954,6 +47228,16 @@ export interface ConversationApiInterface {
|
|
|
46954
47228
|
*/
|
|
46955
47229
|
startConversation(start_request: ConversationStartRequest, options?: any): Promise<ConversationStartResponse>;
|
|
46956
47230
|
|
|
47231
|
+
/**
|
|
47232
|
+
* Update agent profile
|
|
47233
|
+
* @summary Update agent profile
|
|
47234
|
+
* @param {ConversationAgentProfile} profile_request Profile request
|
|
47235
|
+
* @param {*} [options] Override http request option.
|
|
47236
|
+
* @throws {RequiredError}
|
|
47237
|
+
* @memberof ConversationApiInterface
|
|
47238
|
+
*/
|
|
47239
|
+
updateAgentProfile(profile_request: ConversationAgentProfile, options?: any): Promise<ConversationAgentProfileResponse>;
|
|
47240
|
+
|
|
46957
47241
|
/**
|
|
46958
47242
|
* Update a canned message
|
|
46959
47243
|
* @summary Update a canned message
|
|
@@ -47054,6 +47338,17 @@ export class ConversationApi extends BaseAPI implements ConversationApiInterface
|
|
|
47054
47338
|
return ConversationApiFp(this.configuration).getAgentKeepAlive(options)(this.fetch, this.basePath);
|
|
47055
47339
|
}
|
|
47056
47340
|
|
|
47341
|
+
/**
|
|
47342
|
+
* Retrieve the agents profile
|
|
47343
|
+
* @summary Get agent profile
|
|
47344
|
+
* @param {*} [options] Override http request option.
|
|
47345
|
+
* @throws {RequiredError}
|
|
47346
|
+
* @memberof ConversationApi
|
|
47347
|
+
*/
|
|
47348
|
+
public getAgentProfile(options?: any) {
|
|
47349
|
+
return ConversationApiFp(this.configuration).getAgentProfile(options)(this.fetch, this.basePath);
|
|
47350
|
+
}
|
|
47351
|
+
|
|
47057
47352
|
/**
|
|
47058
47353
|
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
47059
47354
|
* @summary Get agent websocket authorization
|
|
@@ -47341,6 +47636,18 @@ export class ConversationApi extends BaseAPI implements ConversationApiInterface
|
|
|
47341
47636
|
return ConversationApiFp(this.configuration).startConversation(start_request, options)(this.fetch, this.basePath);
|
|
47342
47637
|
}
|
|
47343
47638
|
|
|
47639
|
+
/**
|
|
47640
|
+
* Update agent profile
|
|
47641
|
+
* @summary Update agent profile
|
|
47642
|
+
* @param {ConversationAgentProfile} profile_request Profile request
|
|
47643
|
+
* @param {*} [options] Override http request option.
|
|
47644
|
+
* @throws {RequiredError}
|
|
47645
|
+
* @memberof ConversationApi
|
|
47646
|
+
*/
|
|
47647
|
+
public updateAgentProfile(profile_request: ConversationAgentProfile, options?: any) {
|
|
47648
|
+
return ConversationApiFp(this.configuration).updateAgentProfile(profile_request, options)(this.fetch, this.basePath);
|
|
47649
|
+
}
|
|
47650
|
+
|
|
47344
47651
|
/**
|
|
47345
47652
|
* Update a canned message
|
|
47346
47653
|
* @summary Update a canned message
|
package/dist/api.d.ts
CHANGED
|
@@ -6597,6 +6597,107 @@ export interface ConversationAgentAuthResponse {
|
|
|
6597
6597
|
*/
|
|
6598
6598
|
warning?: Warning;
|
|
6599
6599
|
}
|
|
6600
|
+
/**
|
|
6601
|
+
*
|
|
6602
|
+
* @export
|
|
6603
|
+
* @interface ConversationAgentProfile
|
|
6604
|
+
*/
|
|
6605
|
+
export interface ConversationAgentProfile {
|
|
6606
|
+
/**
|
|
6607
|
+
* The number of engagement chats that can be pushed on them at any given time.
|
|
6608
|
+
* @type {number}
|
|
6609
|
+
* @memberof ConversationAgentProfile
|
|
6610
|
+
*/
|
|
6611
|
+
chat_limit?: number;
|
|
6612
|
+
/**
|
|
6613
|
+
* The default language the agent is chatting in
|
|
6614
|
+
* @type {string}
|
|
6615
|
+
* @memberof ConversationAgentProfile
|
|
6616
|
+
*/
|
|
6617
|
+
default_language_iso_code?: string;
|
|
6618
|
+
/**
|
|
6619
|
+
* Default status when the agent loads conversations app.
|
|
6620
|
+
* @type {string}
|
|
6621
|
+
* @memberof ConversationAgentProfile
|
|
6622
|
+
*/
|
|
6623
|
+
default_status?: ConversationAgentProfile.DefaultStatusEnum;
|
|
6624
|
+
/**
|
|
6625
|
+
* An alternate name that the agent wants to use in chat.
|
|
6626
|
+
* @type {string}
|
|
6627
|
+
* @memberof ConversationAgentProfile
|
|
6628
|
+
*/
|
|
6629
|
+
display_name?: string;
|
|
6630
|
+
/**
|
|
6631
|
+
* Their actual user name for profile settings display as placeholder test
|
|
6632
|
+
* @type {string}
|
|
6633
|
+
* @memberof ConversationAgentProfile
|
|
6634
|
+
*/
|
|
6635
|
+
name?: string;
|
|
6636
|
+
/**
|
|
6637
|
+
* An upload key used to update the profile image.
|
|
6638
|
+
* @type {string}
|
|
6639
|
+
* @memberof ConversationAgentProfile
|
|
6640
|
+
*/
|
|
6641
|
+
profile_image_upload_key?: string;
|
|
6642
|
+
/**
|
|
6643
|
+
* Their current profile image URL
|
|
6644
|
+
* @type {string}
|
|
6645
|
+
* @memberof ConversationAgentProfile
|
|
6646
|
+
*/
|
|
6647
|
+
profile_image_url?: string;
|
|
6648
|
+
}
|
|
6649
|
+
/**
|
|
6650
|
+
* @export
|
|
6651
|
+
* @namespace ConversationAgentProfile
|
|
6652
|
+
*/
|
|
6653
|
+
export declare namespace ConversationAgentProfile {
|
|
6654
|
+
/**
|
|
6655
|
+
* @export
|
|
6656
|
+
* @enum {string}
|
|
6657
|
+
*/
|
|
6658
|
+
enum DefaultStatusEnum {
|
|
6659
|
+
Available,
|
|
6660
|
+
Busy,
|
|
6661
|
+
Unavailable
|
|
6662
|
+
}
|
|
6663
|
+
}
|
|
6664
|
+
/**
|
|
6665
|
+
*
|
|
6666
|
+
* @export
|
|
6667
|
+
* @interface ConversationAgentProfileResponse
|
|
6668
|
+
*/
|
|
6669
|
+
export interface ConversationAgentProfileResponse {
|
|
6670
|
+
/**
|
|
6671
|
+
*
|
|
6672
|
+
* @type {ConversationAgentProfile}
|
|
6673
|
+
* @memberof ConversationAgentProfileResponse
|
|
6674
|
+
*/
|
|
6675
|
+
agent_profile?: ConversationAgentProfile;
|
|
6676
|
+
/**
|
|
6677
|
+
*
|
|
6678
|
+
* @type {ModelError}
|
|
6679
|
+
* @memberof ConversationAgentProfileResponse
|
|
6680
|
+
*/
|
|
6681
|
+
error?: ModelError;
|
|
6682
|
+
/**
|
|
6683
|
+
*
|
|
6684
|
+
* @type {ResponseMetadata}
|
|
6685
|
+
* @memberof ConversationAgentProfileResponse
|
|
6686
|
+
*/
|
|
6687
|
+
metadata?: ResponseMetadata;
|
|
6688
|
+
/**
|
|
6689
|
+
* Indicates if API call was successful
|
|
6690
|
+
* @type {boolean}
|
|
6691
|
+
* @memberof ConversationAgentProfileResponse
|
|
6692
|
+
*/
|
|
6693
|
+
success?: boolean;
|
|
6694
|
+
/**
|
|
6695
|
+
*
|
|
6696
|
+
* @type {Warning}
|
|
6697
|
+
* @memberof ConversationAgentProfileResponse
|
|
6698
|
+
*/
|
|
6699
|
+
warning?: Warning;
|
|
6700
|
+
}
|
|
6600
6701
|
/**
|
|
6601
6702
|
*
|
|
6602
6703
|
* @export
|
|
@@ -39782,6 +39883,13 @@ export declare const ConversationApiFetchParamCreator: (configuration?: Configur
|
|
|
39782
39883
|
* @throws {RequiredError}
|
|
39783
39884
|
*/
|
|
39784
39885
|
getAgentKeepAlive(options?: any): FetchArgs;
|
|
39886
|
+
/**
|
|
39887
|
+
* Retrieve the agents profile
|
|
39888
|
+
* @summary Get agent profile
|
|
39889
|
+
* @param {*} [options] Override http request option.
|
|
39890
|
+
* @throws {RequiredError}
|
|
39891
|
+
*/
|
|
39892
|
+
getAgentProfile(options?: any): FetchArgs;
|
|
39785
39893
|
/**
|
|
39786
39894
|
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
39787
39895
|
* @summary Get agent websocket authorization
|
|
@@ -39973,6 +40081,14 @@ export declare const ConversationApiFetchParamCreator: (configuration?: Configur
|
|
|
39973
40081
|
* @throws {RequiredError}
|
|
39974
40082
|
*/
|
|
39975
40083
|
startConversation(start_request: ConversationStartRequest, options?: any): FetchArgs;
|
|
40084
|
+
/**
|
|
40085
|
+
* Update agent profile
|
|
40086
|
+
* @summary Update agent profile
|
|
40087
|
+
* @param {ConversationAgentProfile} profile_request Profile request
|
|
40088
|
+
* @param {*} [options] Override http request option.
|
|
40089
|
+
* @throws {RequiredError}
|
|
40090
|
+
*/
|
|
40091
|
+
updateAgentProfile(profile_request: ConversationAgentProfile, options?: any): FetchArgs;
|
|
39976
40092
|
/**
|
|
39977
40093
|
* Update a canned message
|
|
39978
40094
|
* @summary Update a canned message
|
|
@@ -40046,6 +40162,13 @@ export declare const ConversationApiFp: (configuration?: Configuration) => {
|
|
|
40046
40162
|
* @throws {RequiredError}
|
|
40047
40163
|
*/
|
|
40048
40164
|
getAgentKeepAlive(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
40165
|
+
/**
|
|
40166
|
+
* Retrieve the agents profile
|
|
40167
|
+
* @summary Get agent profile
|
|
40168
|
+
* @param {*} [options] Override http request option.
|
|
40169
|
+
* @throws {RequiredError}
|
|
40170
|
+
*/
|
|
40171
|
+
getAgentProfile(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationAgentProfileResponse>;
|
|
40049
40172
|
/**
|
|
40050
40173
|
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
40051
40174
|
* @summary Get agent websocket authorization
|
|
@@ -40237,6 +40360,14 @@ export declare const ConversationApiFp: (configuration?: Configuration) => {
|
|
|
40237
40360
|
* @throws {RequiredError}
|
|
40238
40361
|
*/
|
|
40239
40362
|
startConversation(start_request: ConversationStartRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationStartResponse>;
|
|
40363
|
+
/**
|
|
40364
|
+
* Update agent profile
|
|
40365
|
+
* @summary Update agent profile
|
|
40366
|
+
* @param {ConversationAgentProfile} profile_request Profile request
|
|
40367
|
+
* @param {*} [options] Override http request option.
|
|
40368
|
+
* @throws {RequiredError}
|
|
40369
|
+
*/
|
|
40370
|
+
updateAgentProfile(profile_request: ConversationAgentProfile, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationAgentProfileResponse>;
|
|
40240
40371
|
/**
|
|
40241
40372
|
* Update a canned message
|
|
40242
40373
|
* @summary Update a canned message
|
|
@@ -40310,6 +40441,13 @@ export declare const ConversationApiFactory: (configuration?: Configuration, fet
|
|
|
40310
40441
|
* @throws {RequiredError}
|
|
40311
40442
|
*/
|
|
40312
40443
|
getAgentKeepAlive(options?: any): Promise<Response>;
|
|
40444
|
+
/**
|
|
40445
|
+
* Retrieve the agents profile
|
|
40446
|
+
* @summary Get agent profile
|
|
40447
|
+
* @param {*} [options] Override http request option.
|
|
40448
|
+
* @throws {RequiredError}
|
|
40449
|
+
*/
|
|
40450
|
+
getAgentProfile(options?: any): Promise<ConversationAgentProfileResponse>;
|
|
40313
40451
|
/**
|
|
40314
40452
|
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
40315
40453
|
* @summary Get agent websocket authorization
|
|
@@ -40501,6 +40639,14 @@ export declare const ConversationApiFactory: (configuration?: Configuration, fet
|
|
|
40501
40639
|
* @throws {RequiredError}
|
|
40502
40640
|
*/
|
|
40503
40641
|
startConversation(start_request: ConversationStartRequest, options?: any): Promise<ConversationStartResponse>;
|
|
40642
|
+
/**
|
|
40643
|
+
* Update agent profile
|
|
40644
|
+
* @summary Update agent profile
|
|
40645
|
+
* @param {ConversationAgentProfile} profile_request Profile request
|
|
40646
|
+
* @param {*} [options] Override http request option.
|
|
40647
|
+
* @throws {RequiredError}
|
|
40648
|
+
*/
|
|
40649
|
+
updateAgentProfile(profile_request: ConversationAgentProfile, options?: any): Promise<ConversationAgentProfileResponse>;
|
|
40504
40650
|
/**
|
|
40505
40651
|
* Update a canned message
|
|
40506
40652
|
* @summary Update a canned message
|
|
@@ -40579,6 +40725,14 @@ export interface ConversationApiInterface {
|
|
|
40579
40725
|
* @memberof ConversationApiInterface
|
|
40580
40726
|
*/
|
|
40581
40727
|
getAgentKeepAlive(options?: any): Promise<{}>;
|
|
40728
|
+
/**
|
|
40729
|
+
* Retrieve the agents profile
|
|
40730
|
+
* @summary Get agent profile
|
|
40731
|
+
* @param {*} [options] Override http request option.
|
|
40732
|
+
* @throws {RequiredError}
|
|
40733
|
+
* @memberof ConversationApiInterface
|
|
40734
|
+
*/
|
|
40735
|
+
getAgentProfile(options?: any): Promise<ConversationAgentProfileResponse>;
|
|
40582
40736
|
/**
|
|
40583
40737
|
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
40584
40738
|
* @summary Get agent websocket authorization
|
|
@@ -40794,6 +40948,15 @@ export interface ConversationApiInterface {
|
|
|
40794
40948
|
* @memberof ConversationApiInterface
|
|
40795
40949
|
*/
|
|
40796
40950
|
startConversation(start_request: ConversationStartRequest, options?: any): Promise<ConversationStartResponse>;
|
|
40951
|
+
/**
|
|
40952
|
+
* Update agent profile
|
|
40953
|
+
* @summary Update agent profile
|
|
40954
|
+
* @param {ConversationAgentProfile} profile_request Profile request
|
|
40955
|
+
* @param {*} [options] Override http request option.
|
|
40956
|
+
* @throws {RequiredError}
|
|
40957
|
+
* @memberof ConversationApiInterface
|
|
40958
|
+
*/
|
|
40959
|
+
updateAgentProfile(profile_request: ConversationAgentProfile, options?: any): Promise<ConversationAgentProfileResponse>;
|
|
40797
40960
|
/**
|
|
40798
40961
|
* Update a canned message
|
|
40799
40962
|
* @summary Update a canned message
|
|
@@ -40877,6 +41040,14 @@ export declare class ConversationApi extends BaseAPI implements ConversationApiI
|
|
|
40877
41040
|
* @memberof ConversationApi
|
|
40878
41041
|
*/
|
|
40879
41042
|
getAgentKeepAlive(options?: any): Promise<Response>;
|
|
41043
|
+
/**
|
|
41044
|
+
* Retrieve the agents profile
|
|
41045
|
+
* @summary Get agent profile
|
|
41046
|
+
* @param {*} [options] Override http request option.
|
|
41047
|
+
* @throws {RequiredError}
|
|
41048
|
+
* @memberof ConversationApi
|
|
41049
|
+
*/
|
|
41050
|
+
getAgentProfile(options?: any): Promise<ConversationAgentProfileResponse>;
|
|
40880
41051
|
/**
|
|
40881
41052
|
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
40882
41053
|
* @summary Get agent websocket authorization
|
|
@@ -41092,6 +41263,15 @@ export declare class ConversationApi extends BaseAPI implements ConversationApiI
|
|
|
41092
41263
|
* @memberof ConversationApi
|
|
41093
41264
|
*/
|
|
41094
41265
|
startConversation(start_request: ConversationStartRequest, options?: any): Promise<ConversationStartResponse>;
|
|
41266
|
+
/**
|
|
41267
|
+
* Update agent profile
|
|
41268
|
+
* @summary Update agent profile
|
|
41269
|
+
* @param {ConversationAgentProfile} profile_request Profile request
|
|
41270
|
+
* @param {*} [options] Override http request option.
|
|
41271
|
+
* @throws {RequiredError}
|
|
41272
|
+
* @memberof ConversationApi
|
|
41273
|
+
*/
|
|
41274
|
+
updateAgentProfile(profile_request: ConversationAgentProfile, options?: any): Promise<ConversationAgentProfileResponse>;
|
|
41095
41275
|
/**
|
|
41096
41276
|
* Update a canned message
|
|
41097
41277
|
* @summary Update a canned message
|
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 = void 0;
|
|
31
|
+
exports.OrderPayment = exports.OrderItemOption = exports.OrderItem = exports.OrderFraudScore = exports.OrderFormat = 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.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.IntegrationLogApiFactory = exports.IntegrationLogApiFp = 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 = 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 = 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(/\/+$/, "");
|
|
@@ -375,6 +375,23 @@ var Conversation;
|
|
|
375
375
|
MediumEnum[MediumEnum["Websocket"] = 'websocket'] = "Websocket";
|
|
376
376
|
})(MediumEnum = Conversation.MediumEnum || (Conversation.MediumEnum = {}));
|
|
377
377
|
})(Conversation = exports.Conversation || (exports.Conversation = {}));
|
|
378
|
+
/**
|
|
379
|
+
* @export
|
|
380
|
+
* @namespace ConversationAgentProfile
|
|
381
|
+
*/
|
|
382
|
+
var ConversationAgentProfile;
|
|
383
|
+
(function (ConversationAgentProfile) {
|
|
384
|
+
/**
|
|
385
|
+
* @export
|
|
386
|
+
* @enum {string}
|
|
387
|
+
*/
|
|
388
|
+
var DefaultStatusEnum;
|
|
389
|
+
(function (DefaultStatusEnum) {
|
|
390
|
+
DefaultStatusEnum[DefaultStatusEnum["Available"] = 'available'] = "Available";
|
|
391
|
+
DefaultStatusEnum[DefaultStatusEnum["Busy"] = 'busy'] = "Busy";
|
|
392
|
+
DefaultStatusEnum[DefaultStatusEnum["Unavailable"] = 'unavailable'] = "Unavailable";
|
|
393
|
+
})(DefaultStatusEnum = ConversationAgentProfile.DefaultStatusEnum || (ConversationAgentProfile.DefaultStatusEnum = {}));
|
|
394
|
+
})(ConversationAgentProfile = exports.ConversationAgentProfile || (exports.ConversationAgentProfile = {}));
|
|
378
395
|
/**
|
|
379
396
|
* @export
|
|
380
397
|
* @namespace ConversationEngagement
|
|
@@ -6333,6 +6350,46 @@ var ConversationApiFetchParamCreator = function (configuration) {
|
|
|
6333
6350
|
options: localVarRequestOptions,
|
|
6334
6351
|
};
|
|
6335
6352
|
},
|
|
6353
|
+
/**
|
|
6354
|
+
* Retrieve the agents profile
|
|
6355
|
+
* @summary Get agent profile
|
|
6356
|
+
* @param {*} [options] Override http request option.
|
|
6357
|
+
* @throws {RequiredError}
|
|
6358
|
+
*/
|
|
6359
|
+
getAgentProfile: function (options) {
|
|
6360
|
+
if (options === void 0) { options = {}; }
|
|
6361
|
+
var localVarPath = "/conversation/agent/profile";
|
|
6362
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
6363
|
+
var localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
6364
|
+
var localVarHeaderParameter = {};
|
|
6365
|
+
var localVarQueryParameter = {};
|
|
6366
|
+
if (configuration && configuration.apiVersion) {
|
|
6367
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
6368
|
+
}
|
|
6369
|
+
// authentication ultraCartOauth required
|
|
6370
|
+
// oauth required
|
|
6371
|
+
if (configuration && configuration.accessToken) {
|
|
6372
|
+
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
6373
|
+
? configuration.accessToken("ultraCartOauth", ["conversation_read"])
|
|
6374
|
+
: configuration.accessToken;
|
|
6375
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
6376
|
+
}
|
|
6377
|
+
// authentication ultraCartSimpleApiKey required
|
|
6378
|
+
if (configuration && configuration.apiKey) {
|
|
6379
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
6380
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
6381
|
+
: configuration.apiKey;
|
|
6382
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
6383
|
+
}
|
|
6384
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
6385
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
6386
|
+
delete localVarUrlObj.search;
|
|
6387
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
6388
|
+
return {
|
|
6389
|
+
url: url.format(localVarUrlObj),
|
|
6390
|
+
options: localVarRequestOptions,
|
|
6391
|
+
};
|
|
6392
|
+
},
|
|
6336
6393
|
/**
|
|
6337
6394
|
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
6338
6395
|
* @summary Get agent websocket authorization
|
|
@@ -7431,6 +7488,54 @@ var ConversationApiFetchParamCreator = function (configuration) {
|
|
|
7431
7488
|
options: localVarRequestOptions,
|
|
7432
7489
|
};
|
|
7433
7490
|
},
|
|
7491
|
+
/**
|
|
7492
|
+
* Update agent profile
|
|
7493
|
+
* @summary Update agent profile
|
|
7494
|
+
* @param {ConversationAgentProfile} profile_request Profile request
|
|
7495
|
+
* @param {*} [options] Override http request option.
|
|
7496
|
+
* @throws {RequiredError}
|
|
7497
|
+
*/
|
|
7498
|
+
updateAgentProfile: function (profile_request, options) {
|
|
7499
|
+
if (options === void 0) { options = {}; }
|
|
7500
|
+
// verify required parameter 'profile_request' is not null or undefined
|
|
7501
|
+
if (profile_request === null || profile_request === undefined) {
|
|
7502
|
+
throw new RequiredError('profile_request', 'Required parameter profile_request was null or undefined when calling updateAgentProfile.');
|
|
7503
|
+
}
|
|
7504
|
+
var localVarPath = "/conversation/agent/profile";
|
|
7505
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
7506
|
+
var localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
|
|
7507
|
+
var localVarHeaderParameter = {};
|
|
7508
|
+
var localVarQueryParameter = {};
|
|
7509
|
+
if (configuration && configuration.apiVersion) {
|
|
7510
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
7511
|
+
}
|
|
7512
|
+
// authentication ultraCartOauth required
|
|
7513
|
+
// oauth required
|
|
7514
|
+
if (configuration && configuration.accessToken) {
|
|
7515
|
+
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
7516
|
+
? configuration.accessToken("ultraCartOauth", ["conversation_write"])
|
|
7517
|
+
: configuration.accessToken;
|
|
7518
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
7519
|
+
}
|
|
7520
|
+
// authentication ultraCartSimpleApiKey required
|
|
7521
|
+
if (configuration && configuration.apiKey) {
|
|
7522
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
7523
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
7524
|
+
: configuration.apiKey;
|
|
7525
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
7526
|
+
}
|
|
7527
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7528
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
7529
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
7530
|
+
delete localVarUrlObj.search;
|
|
7531
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
7532
|
+
var needsSerialization = ("ConversationAgentProfile" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
7533
|
+
localVarRequestOptions.body = needsSerialization ? JSON.stringify(profile_request || {}) : (profile_request || "");
|
|
7534
|
+
return {
|
|
7535
|
+
url: url.format(localVarUrlObj),
|
|
7536
|
+
options: localVarRequestOptions,
|
|
7537
|
+
};
|
|
7538
|
+
},
|
|
7434
7539
|
/**
|
|
7435
7540
|
* Update a canned message
|
|
7436
7541
|
* @summary Update a canned message
|
|
@@ -7743,6 +7848,27 @@ var ConversationApiFp = function (configuration) {
|
|
|
7743
7848
|
});
|
|
7744
7849
|
};
|
|
7745
7850
|
},
|
|
7851
|
+
/**
|
|
7852
|
+
* Retrieve the agents profile
|
|
7853
|
+
* @summary Get agent profile
|
|
7854
|
+
* @param {*} [options] Override http request option.
|
|
7855
|
+
* @throws {RequiredError}
|
|
7856
|
+
*/
|
|
7857
|
+
getAgentProfile: function (options) {
|
|
7858
|
+
var localVarFetchArgs = (0, exports.ConversationApiFetchParamCreator)(configuration).getAgentProfile(options);
|
|
7859
|
+
return function (fetch, basePath) {
|
|
7860
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
7861
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
7862
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
7863
|
+
if (response.status >= 200 && response.status < 300) {
|
|
7864
|
+
return response.json();
|
|
7865
|
+
}
|
|
7866
|
+
else {
|
|
7867
|
+
throw response;
|
|
7868
|
+
}
|
|
7869
|
+
});
|
|
7870
|
+
};
|
|
7871
|
+
},
|
|
7746
7872
|
/**
|
|
7747
7873
|
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
7748
7874
|
* @summary Get agent websocket authorization
|
|
@@ -8270,6 +8396,28 @@ var ConversationApiFp = function (configuration) {
|
|
|
8270
8396
|
});
|
|
8271
8397
|
};
|
|
8272
8398
|
},
|
|
8399
|
+
/**
|
|
8400
|
+
* Update agent profile
|
|
8401
|
+
* @summary Update agent profile
|
|
8402
|
+
* @param {ConversationAgentProfile} profile_request Profile request
|
|
8403
|
+
* @param {*} [options] Override http request option.
|
|
8404
|
+
* @throws {RequiredError}
|
|
8405
|
+
*/
|
|
8406
|
+
updateAgentProfile: function (profile_request, options) {
|
|
8407
|
+
var localVarFetchArgs = (0, exports.ConversationApiFetchParamCreator)(configuration).updateAgentProfile(profile_request, options);
|
|
8408
|
+
return function (fetch, basePath) {
|
|
8409
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
8410
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
8411
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
8412
|
+
if (response.status >= 200 && response.status < 300) {
|
|
8413
|
+
return response.json();
|
|
8414
|
+
}
|
|
8415
|
+
else {
|
|
8416
|
+
throw response;
|
|
8417
|
+
}
|
|
8418
|
+
});
|
|
8419
|
+
};
|
|
8420
|
+
},
|
|
8273
8421
|
/**
|
|
8274
8422
|
* Update a canned message
|
|
8275
8423
|
* @summary Update a canned message
|
|
@@ -8410,6 +8558,15 @@ var ConversationApiFactory = function (configuration, fetch, basePath) {
|
|
|
8410
8558
|
getAgentKeepAlive: function (options) {
|
|
8411
8559
|
return (0, exports.ConversationApiFp)(configuration).getAgentKeepAlive(options)(fetch, basePath);
|
|
8412
8560
|
},
|
|
8561
|
+
/**
|
|
8562
|
+
* Retrieve the agents profile
|
|
8563
|
+
* @summary Get agent profile
|
|
8564
|
+
* @param {*} [options] Override http request option.
|
|
8565
|
+
* @throws {RequiredError}
|
|
8566
|
+
*/
|
|
8567
|
+
getAgentProfile: function (options) {
|
|
8568
|
+
return (0, exports.ConversationApiFp)(configuration).getAgentProfile(options)(fetch, basePath);
|
|
8569
|
+
},
|
|
8413
8570
|
/**
|
|
8414
8571
|
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
8415
8572
|
* @summary Get agent websocket authorization
|
|
@@ -8649,6 +8806,16 @@ var ConversationApiFactory = function (configuration, fetch, basePath) {
|
|
|
8649
8806
|
startConversation: function (start_request, options) {
|
|
8650
8807
|
return (0, exports.ConversationApiFp)(configuration).startConversation(start_request, options)(fetch, basePath);
|
|
8651
8808
|
},
|
|
8809
|
+
/**
|
|
8810
|
+
* Update agent profile
|
|
8811
|
+
* @summary Update agent profile
|
|
8812
|
+
* @param {ConversationAgentProfile} profile_request Profile request
|
|
8813
|
+
* @param {*} [options] Override http request option.
|
|
8814
|
+
* @throws {RequiredError}
|
|
8815
|
+
*/
|
|
8816
|
+
updateAgentProfile: function (profile_request, options) {
|
|
8817
|
+
return (0, exports.ConversationApiFp)(configuration).updateAgentProfile(profile_request, options)(fetch, basePath);
|
|
8818
|
+
},
|
|
8652
8819
|
/**
|
|
8653
8820
|
* Update a canned message
|
|
8654
8821
|
* @summary Update a canned message
|
|
@@ -8750,6 +8917,16 @@ var ConversationApi = /** @class */ (function (_super) {
|
|
|
8750
8917
|
ConversationApi.prototype.getAgentKeepAlive = function (options) {
|
|
8751
8918
|
return (0, exports.ConversationApiFp)(this.configuration).getAgentKeepAlive(options)(this.fetch, this.basePath);
|
|
8752
8919
|
};
|
|
8920
|
+
/**
|
|
8921
|
+
* Retrieve the agents profile
|
|
8922
|
+
* @summary Get agent profile
|
|
8923
|
+
* @param {*} [options] Override http request option.
|
|
8924
|
+
* @throws {RequiredError}
|
|
8925
|
+
* @memberof ConversationApi
|
|
8926
|
+
*/
|
|
8927
|
+
ConversationApi.prototype.getAgentProfile = function (options) {
|
|
8928
|
+
return (0, exports.ConversationApiFp)(this.configuration).getAgentProfile(options)(this.fetch, this.basePath);
|
|
8929
|
+
};
|
|
8753
8930
|
/**
|
|
8754
8931
|
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
8755
8932
|
* @summary Get agent websocket authorization
|
|
@@ -9013,6 +9190,17 @@ var ConversationApi = /** @class */ (function (_super) {
|
|
|
9013
9190
|
ConversationApi.prototype.startConversation = function (start_request, options) {
|
|
9014
9191
|
return (0, exports.ConversationApiFp)(this.configuration).startConversation(start_request, options)(this.fetch, this.basePath);
|
|
9015
9192
|
};
|
|
9193
|
+
/**
|
|
9194
|
+
* Update agent profile
|
|
9195
|
+
* @summary Update agent profile
|
|
9196
|
+
* @param {ConversationAgentProfile} profile_request Profile request
|
|
9197
|
+
* @param {*} [options] Override http request option.
|
|
9198
|
+
* @throws {RequiredError}
|
|
9199
|
+
* @memberof ConversationApi
|
|
9200
|
+
*/
|
|
9201
|
+
ConversationApi.prototype.updateAgentProfile = function (profile_request, options) {
|
|
9202
|
+
return (0, exports.ConversationApiFp)(this.configuration).updateAgentProfile(profile_request, options)(this.fetch, this.basePath);
|
|
9203
|
+
};
|
|
9016
9204
|
/**
|
|
9017
9205
|
* Update a canned message
|
|
9018
9206
|
* @summary Update a canned message
|