ultracart_rest_api_v2_typescript 3.10.111 → 3.10.113

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 CHANGED
@@ -1,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@3.10.111
1
+ ## ultracart_rest_api_v2_typescript@3.10.113
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.111 --save
39
+ npm install ultracart_rest_api_v2_typescript@3.10.113 --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.113 | 02/06/2023 | convo - add conversation_arn to ConversationWebsocketMessage |
58
+ | 3.10.112 | 02/01/2023 | convo - agent profile get/update methods |
57
59
  | 3.10.111 | 01/27/2023 | convo - added event_engage_customer property to message |
58
60
  | 3.10.110 | 01/27/2023 | conversations - getLocationsForEngagement method |
59
61
  | 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
@@ -8895,6 +8999,12 @@ export interface ConversationWebchatQueueStatusesResponse {
8895
8999
  * @interface ConversationWebsocketMessage
8896
9000
  */
8897
9001
  export interface ConversationWebsocketMessage {
9002
+ /**
9003
+ * Conversation ARN
9004
+ * @type {string}
9005
+ * @memberof ConversationWebsocketMessage
9006
+ */
9007
+ conversation_arn?: string;
8898
9008
  /**
8899
9009
  * Conversation UUID if the websocket message is tied to a specific conversation
8900
9010
  * @type {string}
@@ -44153,6 +44263,52 @@ export const ConversationApiFetchParamCreator = function (configuration?: Config
44153
44263
  options: localVarRequestOptions,
44154
44264
  };
44155
44265
  },
44266
+ /**
44267
+ * Retrieve the agents profile
44268
+ * @summary Get agent profile
44269
+ * @param {*} [options] Override http request option.
44270
+ * @throws {RequiredError}
44271
+ */
44272
+ getAgentProfile(options: any = {}): FetchArgs {
44273
+ const localVarPath = `/conversation/agent/profile`;
44274
+ const localVarUrlObj = url.parse(localVarPath, true);
44275
+ const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
44276
+ const localVarHeaderParameter = {} as any;
44277
+ const localVarQueryParameter = {} as any;
44278
+
44279
+ if(configuration && configuration.apiVersion) {
44280
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
44281
+ }
44282
+
44283
+
44284
+
44285
+ // authentication ultraCartOauth required
44286
+ // oauth required
44287
+ if (configuration && configuration.accessToken) {
44288
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
44289
+ ? configuration.accessToken("ultraCartOauth", ["conversation_read"])
44290
+ : configuration.accessToken;
44291
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
44292
+ }
44293
+
44294
+ // authentication ultraCartSimpleApiKey required
44295
+ if (configuration && configuration.apiKey) {
44296
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
44297
+ ? configuration.apiKey("x-ultracart-simple-key")
44298
+ : configuration.apiKey;
44299
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
44300
+ }
44301
+
44302
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
44303
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
44304
+ delete localVarUrlObj.search;
44305
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
44306
+
44307
+ return {
44308
+ url: url.format(localVarUrlObj),
44309
+ options: localVarRequestOptions,
44310
+ };
44311
+ },
44156
44312
  /**
44157
44313
  * Retrieve a JWT to authorize an agent to make a websocket connection.
44158
44314
  * @summary Get agent websocket authorization
@@ -45409,6 +45565,61 @@ export const ConversationApiFetchParamCreator = function (configuration?: Config
45409
45565
  options: localVarRequestOptions,
45410
45566
  };
45411
45567
  },
45568
+ /**
45569
+ * Update agent profile
45570
+ * @summary Update agent profile
45571
+ * @param {ConversationAgentProfile} profile_request Profile request
45572
+ * @param {*} [options] Override http request option.
45573
+ * @throws {RequiredError}
45574
+ */
45575
+ updateAgentProfile(profile_request: ConversationAgentProfile, options: any = {}): FetchArgs {
45576
+ // verify required parameter 'profile_request' is not null or undefined
45577
+ if (profile_request === null || profile_request === undefined) {
45578
+ throw new RequiredError('profile_request','Required parameter profile_request was null or undefined when calling updateAgentProfile.');
45579
+ }
45580
+ const localVarPath = `/conversation/agent/profile`;
45581
+ const localVarUrlObj = url.parse(localVarPath, true);
45582
+ const localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
45583
+ const localVarHeaderParameter = {} as any;
45584
+ const localVarQueryParameter = {} as any;
45585
+
45586
+ if(configuration && configuration.apiVersion) {
45587
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
45588
+ }
45589
+
45590
+
45591
+
45592
+ // authentication ultraCartOauth required
45593
+ // oauth required
45594
+ if (configuration && configuration.accessToken) {
45595
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
45596
+ ? configuration.accessToken("ultraCartOauth", ["conversation_write"])
45597
+ : configuration.accessToken;
45598
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
45599
+ }
45600
+
45601
+ // authentication ultraCartSimpleApiKey required
45602
+ if (configuration && configuration.apiKey) {
45603
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
45604
+ ? configuration.apiKey("x-ultracart-simple-key")
45605
+ : configuration.apiKey;
45606
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
45607
+ }
45608
+
45609
+ localVarHeaderParameter['Content-Type'] = 'application/json';
45610
+
45611
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
45612
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
45613
+ delete localVarUrlObj.search;
45614
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
45615
+ const needsSerialization = (<any>"ConversationAgentProfile" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
45616
+ localVarRequestOptions.body = needsSerialization ? JSON.stringify(profile_request || {}) : (profile_request || "");
45617
+
45618
+ return {
45619
+ url: url.format(localVarUrlObj),
45620
+ options: localVarRequestOptions,
45621
+ };
45622
+ },
45412
45623
  /**
45413
45624
  * Update a canned message
45414
45625
  * @summary Update a canned message
@@ -45745,6 +45956,26 @@ export const ConversationApiFp = function(configuration?: Configuration) {
45745
45956
  });
45746
45957
  };
45747
45958
  },
45959
+ /**
45960
+ * Retrieve the agents profile
45961
+ * @summary Get agent profile
45962
+ * @param {*} [options] Override http request option.
45963
+ * @throws {RequiredError}
45964
+ */
45965
+ getAgentProfile(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationAgentProfileResponse> {
45966
+ const localVarFetchArgs = ConversationApiFetchParamCreator(configuration).getAgentProfile(options);
45967
+ return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
45968
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
45969
+
45970
+ if (response.status >= 200 && response.status < 300) {
45971
+ return response.json();
45972
+
45973
+ } else {
45974
+ throw response;
45975
+ }
45976
+ });
45977
+ };
45978
+ },
45748
45979
  /**
45749
45980
  * Retrieve a JWT to authorize an agent to make a websocket connection.
45750
45981
  * @summary Get agent websocket authorization
@@ -46248,6 +46479,27 @@ export const ConversationApiFp = function(configuration?: Configuration) {
46248
46479
  });
46249
46480
  };
46250
46481
  },
46482
+ /**
46483
+ * Update agent profile
46484
+ * @summary Update agent profile
46485
+ * @param {ConversationAgentProfile} profile_request Profile request
46486
+ * @param {*} [options] Override http request option.
46487
+ * @throws {RequiredError}
46488
+ */
46489
+ updateAgentProfile(profile_request: ConversationAgentProfile, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationAgentProfileResponse> {
46490
+ const localVarFetchArgs = ConversationApiFetchParamCreator(configuration).updateAgentProfile(profile_request, options);
46491
+ return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
46492
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
46493
+
46494
+ if (response.status >= 200 && response.status < 300) {
46495
+ return response.json();
46496
+
46497
+ } else {
46498
+ throw response;
46499
+ }
46500
+ });
46501
+ };
46502
+ },
46251
46503
  /**
46252
46504
  * Update a canned message
46253
46505
  * @summary Update a canned message
@@ -46384,6 +46636,15 @@ export const ConversationApiFactory = function (configuration?: Configuration, f
46384
46636
  getAgentKeepAlive(options?: any) {
46385
46637
  return ConversationApiFp(configuration).getAgentKeepAlive(options)(fetch, basePath);
46386
46638
  },
46639
+ /**
46640
+ * Retrieve the agents profile
46641
+ * @summary Get agent profile
46642
+ * @param {*} [options] Override http request option.
46643
+ * @throws {RequiredError}
46644
+ */
46645
+ getAgentProfile(options?: any) {
46646
+ return ConversationApiFp(configuration).getAgentProfile(options)(fetch, basePath);
46647
+ },
46387
46648
  /**
46388
46649
  * Retrieve a JWT to authorize an agent to make a websocket connection.
46389
46650
  * @summary Get agent websocket authorization
@@ -46623,6 +46884,16 @@ export const ConversationApiFactory = function (configuration?: Configuration, f
46623
46884
  startConversation(start_request: ConversationStartRequest, options?: any) {
46624
46885
  return ConversationApiFp(configuration).startConversation(start_request, options)(fetch, basePath);
46625
46886
  },
46887
+ /**
46888
+ * Update agent profile
46889
+ * @summary Update agent profile
46890
+ * @param {ConversationAgentProfile} profile_request Profile request
46891
+ * @param {*} [options] Override http request option.
46892
+ * @throws {RequiredError}
46893
+ */
46894
+ updateAgentProfile(profile_request: ConversationAgentProfile, options?: any) {
46895
+ return ConversationApiFp(configuration).updateAgentProfile(profile_request, options)(fetch, basePath);
46896
+ },
46626
46897
  /**
46627
46898
  * Update a canned message
46628
46899
  * @summary Update a canned message
@@ -46715,6 +46986,15 @@ export interface ConversationApiInterface {
46715
46986
  */
46716
46987
  getAgentKeepAlive(options?: any): Promise<{}>;
46717
46988
 
46989
+ /**
46990
+ * Retrieve the agents profile
46991
+ * @summary Get agent profile
46992
+ * @param {*} [options] Override http request option.
46993
+ * @throws {RequiredError}
46994
+ * @memberof ConversationApiInterface
46995
+ */
46996
+ getAgentProfile(options?: any): Promise<ConversationAgentProfileResponse>;
46997
+
46718
46998
  /**
46719
46999
  * Retrieve a JWT to authorize an agent to make a websocket connection.
46720
47000
  * @summary Get agent websocket authorization
@@ -46954,6 +47234,16 @@ export interface ConversationApiInterface {
46954
47234
  */
46955
47235
  startConversation(start_request: ConversationStartRequest, options?: any): Promise<ConversationStartResponse>;
46956
47236
 
47237
+ /**
47238
+ * Update agent profile
47239
+ * @summary Update agent profile
47240
+ * @param {ConversationAgentProfile} profile_request Profile request
47241
+ * @param {*} [options] Override http request option.
47242
+ * @throws {RequiredError}
47243
+ * @memberof ConversationApiInterface
47244
+ */
47245
+ updateAgentProfile(profile_request: ConversationAgentProfile, options?: any): Promise<ConversationAgentProfileResponse>;
47246
+
46957
47247
  /**
46958
47248
  * Update a canned message
46959
47249
  * @summary Update a canned message
@@ -47054,6 +47344,17 @@ export class ConversationApi extends BaseAPI implements ConversationApiInterface
47054
47344
  return ConversationApiFp(this.configuration).getAgentKeepAlive(options)(this.fetch, this.basePath);
47055
47345
  }
47056
47346
 
47347
+ /**
47348
+ * Retrieve the agents profile
47349
+ * @summary Get agent profile
47350
+ * @param {*} [options] Override http request option.
47351
+ * @throws {RequiredError}
47352
+ * @memberof ConversationApi
47353
+ */
47354
+ public getAgentProfile(options?: any) {
47355
+ return ConversationApiFp(this.configuration).getAgentProfile(options)(this.fetch, this.basePath);
47356
+ }
47357
+
47057
47358
  /**
47058
47359
  * Retrieve a JWT to authorize an agent to make a websocket connection.
47059
47360
  * @summary Get agent websocket authorization
@@ -47341,6 +47642,18 @@ export class ConversationApi extends BaseAPI implements ConversationApiInterface
47341
47642
  return ConversationApiFp(this.configuration).startConversation(start_request, options)(this.fetch, this.basePath);
47342
47643
  }
47343
47644
 
47645
+ /**
47646
+ * Update agent profile
47647
+ * @summary Update agent profile
47648
+ * @param {ConversationAgentProfile} profile_request Profile request
47649
+ * @param {*} [options] Override http request option.
47650
+ * @throws {RequiredError}
47651
+ * @memberof ConversationApi
47652
+ */
47653
+ public updateAgentProfile(profile_request: ConversationAgentProfile, options?: any) {
47654
+ return ConversationApiFp(this.configuration).updateAgentProfile(profile_request, options)(this.fetch, this.basePath);
47655
+ }
47656
+
47344
47657
  /**
47345
47658
  * Update a canned message
47346
47659
  * @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
@@ -8678,6 +8779,12 @@ export interface ConversationWebchatQueueStatusesResponse {
8678
8779
  * @interface ConversationWebsocketMessage
8679
8780
  */
8680
8781
  export interface ConversationWebsocketMessage {
8782
+ /**
8783
+ * Conversation ARN
8784
+ * @type {string}
8785
+ * @memberof ConversationWebsocketMessage
8786
+ */
8787
+ conversation_arn?: string;
8681
8788
  /**
8682
8789
  * Conversation UUID if the websocket message is tied to a specific conversation
8683
8790
  * @type {string}
@@ -39782,6 +39889,13 @@ export declare const ConversationApiFetchParamCreator: (configuration?: Configur
39782
39889
  * @throws {RequiredError}
39783
39890
  */
39784
39891
  getAgentKeepAlive(options?: any): FetchArgs;
39892
+ /**
39893
+ * Retrieve the agents profile
39894
+ * @summary Get agent profile
39895
+ * @param {*} [options] Override http request option.
39896
+ * @throws {RequiredError}
39897
+ */
39898
+ getAgentProfile(options?: any): FetchArgs;
39785
39899
  /**
39786
39900
  * Retrieve a JWT to authorize an agent to make a websocket connection.
39787
39901
  * @summary Get agent websocket authorization
@@ -39973,6 +40087,14 @@ export declare const ConversationApiFetchParamCreator: (configuration?: Configur
39973
40087
  * @throws {RequiredError}
39974
40088
  */
39975
40089
  startConversation(start_request: ConversationStartRequest, options?: any): FetchArgs;
40090
+ /**
40091
+ * Update agent profile
40092
+ * @summary Update agent profile
40093
+ * @param {ConversationAgentProfile} profile_request Profile request
40094
+ * @param {*} [options] Override http request option.
40095
+ * @throws {RequiredError}
40096
+ */
40097
+ updateAgentProfile(profile_request: ConversationAgentProfile, options?: any): FetchArgs;
39976
40098
  /**
39977
40099
  * Update a canned message
39978
40100
  * @summary Update a canned message
@@ -40046,6 +40168,13 @@ export declare const ConversationApiFp: (configuration?: Configuration) => {
40046
40168
  * @throws {RequiredError}
40047
40169
  */
40048
40170
  getAgentKeepAlive(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
40171
+ /**
40172
+ * Retrieve the agents profile
40173
+ * @summary Get agent profile
40174
+ * @param {*} [options] Override http request option.
40175
+ * @throws {RequiredError}
40176
+ */
40177
+ getAgentProfile(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationAgentProfileResponse>;
40049
40178
  /**
40050
40179
  * Retrieve a JWT to authorize an agent to make a websocket connection.
40051
40180
  * @summary Get agent websocket authorization
@@ -40237,6 +40366,14 @@ export declare const ConversationApiFp: (configuration?: Configuration) => {
40237
40366
  * @throws {RequiredError}
40238
40367
  */
40239
40368
  startConversation(start_request: ConversationStartRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationStartResponse>;
40369
+ /**
40370
+ * Update agent profile
40371
+ * @summary Update agent profile
40372
+ * @param {ConversationAgentProfile} profile_request Profile request
40373
+ * @param {*} [options] Override http request option.
40374
+ * @throws {RequiredError}
40375
+ */
40376
+ updateAgentProfile(profile_request: ConversationAgentProfile, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationAgentProfileResponse>;
40240
40377
  /**
40241
40378
  * Update a canned message
40242
40379
  * @summary Update a canned message
@@ -40310,6 +40447,13 @@ export declare const ConversationApiFactory: (configuration?: Configuration, fet
40310
40447
  * @throws {RequiredError}
40311
40448
  */
40312
40449
  getAgentKeepAlive(options?: any): Promise<Response>;
40450
+ /**
40451
+ * Retrieve the agents profile
40452
+ * @summary Get agent profile
40453
+ * @param {*} [options] Override http request option.
40454
+ * @throws {RequiredError}
40455
+ */
40456
+ getAgentProfile(options?: any): Promise<ConversationAgentProfileResponse>;
40313
40457
  /**
40314
40458
  * Retrieve a JWT to authorize an agent to make a websocket connection.
40315
40459
  * @summary Get agent websocket authorization
@@ -40501,6 +40645,14 @@ export declare const ConversationApiFactory: (configuration?: Configuration, fet
40501
40645
  * @throws {RequiredError}
40502
40646
  */
40503
40647
  startConversation(start_request: ConversationStartRequest, options?: any): Promise<ConversationStartResponse>;
40648
+ /**
40649
+ * Update agent profile
40650
+ * @summary Update agent profile
40651
+ * @param {ConversationAgentProfile} profile_request Profile request
40652
+ * @param {*} [options] Override http request option.
40653
+ * @throws {RequiredError}
40654
+ */
40655
+ updateAgentProfile(profile_request: ConversationAgentProfile, options?: any): Promise<ConversationAgentProfileResponse>;
40504
40656
  /**
40505
40657
  * Update a canned message
40506
40658
  * @summary Update a canned message
@@ -40579,6 +40731,14 @@ export interface ConversationApiInterface {
40579
40731
  * @memberof ConversationApiInterface
40580
40732
  */
40581
40733
  getAgentKeepAlive(options?: any): Promise<{}>;
40734
+ /**
40735
+ * Retrieve the agents profile
40736
+ * @summary Get agent profile
40737
+ * @param {*} [options] Override http request option.
40738
+ * @throws {RequiredError}
40739
+ * @memberof ConversationApiInterface
40740
+ */
40741
+ getAgentProfile(options?: any): Promise<ConversationAgentProfileResponse>;
40582
40742
  /**
40583
40743
  * Retrieve a JWT to authorize an agent to make a websocket connection.
40584
40744
  * @summary Get agent websocket authorization
@@ -40794,6 +40954,15 @@ export interface ConversationApiInterface {
40794
40954
  * @memberof ConversationApiInterface
40795
40955
  */
40796
40956
  startConversation(start_request: ConversationStartRequest, options?: any): Promise<ConversationStartResponse>;
40957
+ /**
40958
+ * Update agent profile
40959
+ * @summary Update agent profile
40960
+ * @param {ConversationAgentProfile} profile_request Profile request
40961
+ * @param {*} [options] Override http request option.
40962
+ * @throws {RequiredError}
40963
+ * @memberof ConversationApiInterface
40964
+ */
40965
+ updateAgentProfile(profile_request: ConversationAgentProfile, options?: any): Promise<ConversationAgentProfileResponse>;
40797
40966
  /**
40798
40967
  * Update a canned message
40799
40968
  * @summary Update a canned message
@@ -40877,6 +41046,14 @@ export declare class ConversationApi extends BaseAPI implements ConversationApiI
40877
41046
  * @memberof ConversationApi
40878
41047
  */
40879
41048
  getAgentKeepAlive(options?: any): Promise<Response>;
41049
+ /**
41050
+ * Retrieve the agents profile
41051
+ * @summary Get agent profile
41052
+ * @param {*} [options] Override http request option.
41053
+ * @throws {RequiredError}
41054
+ * @memberof ConversationApi
41055
+ */
41056
+ getAgentProfile(options?: any): Promise<ConversationAgentProfileResponse>;
40880
41057
  /**
40881
41058
  * Retrieve a JWT to authorize an agent to make a websocket connection.
40882
41059
  * @summary Get agent websocket authorization
@@ -41092,6 +41269,15 @@ export declare class ConversationApi extends BaseAPI implements ConversationApiI
41092
41269
  * @memberof ConversationApi
41093
41270
  */
41094
41271
  startConversation(start_request: ConversationStartRequest, options?: any): Promise<ConversationStartResponse>;
41272
+ /**
41273
+ * Update agent profile
41274
+ * @summary Update agent profile
41275
+ * @param {ConversationAgentProfile} profile_request Profile request
41276
+ * @param {*} [options] Override http request option.
41277
+ * @throws {RequiredError}
41278
+ * @memberof ConversationApi
41279
+ */
41280
+ updateAgentProfile(profile_request: ConversationAgentProfile, options?: any): Promise<ConversationAgentProfileResponse>;
41095
41281
  /**
41096
41282
  * Update a canned message
41097
41283
  * @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.OrderPaymentCreditCard = 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.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.IntegrationLogApi = 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 = 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 = 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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "3.10.111",
3
+ "version": "3.10.113",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "keywords": [