ultracart_rest_api_v2_typescript 3.10.108 → 3.10.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/api.ts +186 -1
- package/dist/api.d.ts +125 -1
- package/dist/api.js +81 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@3.10.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@3.10.110
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install ultracart_rest_api_v2_typescript@3.10.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@3.10.110 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,8 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 3.10.110 | 01/27/2023 | conversations - getLocationsForEngagement method |
|
|
58
|
+
| 3.10.109 | 01/26/2023 | typo in ConversationWebsocketMessage |
|
|
57
59
|
| 3.10.108 | 01/25/2023 | conversation - added message type of engagement prompt |
|
|
58
60
|
| 3.10.107 | 01/25/2023 | convo event for engage customer |
|
|
59
61
|
| 3.10.106 | 01/25/2023 | order api method generateInvoice |
|
package/api.ts
CHANGED
|
@@ -7732,6 +7732,90 @@ export interface ConversationJoinRequest {
|
|
|
7732
7732
|
participant_language_iso_code?: string;
|
|
7733
7733
|
}
|
|
7734
7734
|
|
|
7735
|
+
/**
|
|
7736
|
+
*
|
|
7737
|
+
* @export
|
|
7738
|
+
* @interface ConversationLocationCountry
|
|
7739
|
+
*/
|
|
7740
|
+
export interface ConversationLocationCountry {
|
|
7741
|
+
/**
|
|
7742
|
+
*
|
|
7743
|
+
* @type {string}
|
|
7744
|
+
* @memberof ConversationLocationCountry
|
|
7745
|
+
*/
|
|
7746
|
+
iso2?: string;
|
|
7747
|
+
/**
|
|
7748
|
+
*
|
|
7749
|
+
* @type {string}
|
|
7750
|
+
* @memberof ConversationLocationCountry
|
|
7751
|
+
*/
|
|
7752
|
+
name?: string;
|
|
7753
|
+
/**
|
|
7754
|
+
*
|
|
7755
|
+
* @type {Array<ConversationLocationStateProvince>}
|
|
7756
|
+
* @memberof ConversationLocationCountry
|
|
7757
|
+
*/
|
|
7758
|
+
state_provinces?: Array<ConversationLocationStateProvince>;
|
|
7759
|
+
}
|
|
7760
|
+
|
|
7761
|
+
/**
|
|
7762
|
+
*
|
|
7763
|
+
* @export
|
|
7764
|
+
* @interface ConversationLocationStateProvince
|
|
7765
|
+
*/
|
|
7766
|
+
export interface ConversationLocationStateProvince {
|
|
7767
|
+
/**
|
|
7768
|
+
*
|
|
7769
|
+
* @type {string}
|
|
7770
|
+
* @memberof ConversationLocationStateProvince
|
|
7771
|
+
*/
|
|
7772
|
+
abbreviation?: string;
|
|
7773
|
+
/**
|
|
7774
|
+
*
|
|
7775
|
+
* @type {string}
|
|
7776
|
+
* @memberof ConversationLocationStateProvince
|
|
7777
|
+
*/
|
|
7778
|
+
name?: string;
|
|
7779
|
+
}
|
|
7780
|
+
|
|
7781
|
+
/**
|
|
7782
|
+
*
|
|
7783
|
+
* @export
|
|
7784
|
+
* @interface ConversationLocationsResponse
|
|
7785
|
+
*/
|
|
7786
|
+
export interface ConversationLocationsResponse {
|
|
7787
|
+
/**
|
|
7788
|
+
*
|
|
7789
|
+
* @type {Array<ConversationLocationCountry>}
|
|
7790
|
+
* @memberof ConversationLocationsResponse
|
|
7791
|
+
*/
|
|
7792
|
+
countries?: Array<ConversationLocationCountry>;
|
|
7793
|
+
/**
|
|
7794
|
+
*
|
|
7795
|
+
* @type {ModelError}
|
|
7796
|
+
* @memberof ConversationLocationsResponse
|
|
7797
|
+
*/
|
|
7798
|
+
error?: ModelError;
|
|
7799
|
+
/**
|
|
7800
|
+
*
|
|
7801
|
+
* @type {ResponseMetadata}
|
|
7802
|
+
* @memberof ConversationLocationsResponse
|
|
7803
|
+
*/
|
|
7804
|
+
metadata?: ResponseMetadata;
|
|
7805
|
+
/**
|
|
7806
|
+
* Indicates if API call was successful
|
|
7807
|
+
* @type {boolean}
|
|
7808
|
+
* @memberof ConversationLocationsResponse
|
|
7809
|
+
*/
|
|
7810
|
+
success?: boolean;
|
|
7811
|
+
/**
|
|
7812
|
+
*
|
|
7813
|
+
* @type {Warning}
|
|
7814
|
+
* @memberof ConversationLocationsResponse
|
|
7815
|
+
*/
|
|
7816
|
+
warning?: Warning;
|
|
7817
|
+
}
|
|
7818
|
+
|
|
7735
7819
|
/**
|
|
7736
7820
|
*
|
|
7737
7821
|
* @export
|
|
@@ -8959,7 +9043,7 @@ export namespace ConversationWebsocketMessage {
|
|
|
8959
9043
|
Rrweb = <any> 'rrweb',
|
|
8960
9044
|
ParticipantUpdate = <any> 'participant update',
|
|
8961
9045
|
ParticipantJoin = <any> 'participant join',
|
|
8962
|
-
|
|
9046
|
+
ParticipantLeft = <any> 'participant left',
|
|
8963
9047
|
ReadMessage = <any> 'read message',
|
|
8964
9048
|
Typing = <any> 'typing',
|
|
8965
9049
|
AddCoupon = <any> 'add coupon',
|
|
@@ -32268,6 +32352,12 @@ export interface PricingTier {
|
|
|
32268
32352
|
* @memberof PricingTier
|
|
32269
32353
|
*/
|
|
32270
32354
|
exclude_from_free_promotion?: boolean;
|
|
32355
|
+
/**
|
|
32356
|
+
* Exempt from Loyalty Rewards
|
|
32357
|
+
* @type {boolean}
|
|
32358
|
+
* @memberof PricingTier
|
|
32359
|
+
*/
|
|
32360
|
+
exempt_loyalty_rewards?: boolean;
|
|
32271
32361
|
/**
|
|
32272
32362
|
* Exempt shipping handling charge
|
|
32273
32363
|
* @type {boolean}
|
|
@@ -44831,6 +44921,52 @@ export const ConversationApiFetchParamCreator = function (configuration?: Config
|
|
|
44831
44921
|
options: localVarRequestOptions,
|
|
44832
44922
|
};
|
|
44833
44923
|
},
|
|
44924
|
+
/**
|
|
44925
|
+
* Get location data for engagement configuration
|
|
44926
|
+
* @summary Get location data for engagement configuration
|
|
44927
|
+
* @param {*} [options] Override http request option.
|
|
44928
|
+
* @throws {RequiredError}
|
|
44929
|
+
*/
|
|
44930
|
+
getLocationsForEngagement(options: any = {}): FetchArgs {
|
|
44931
|
+
const localVarPath = `/conversation/locations`;
|
|
44932
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
44933
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
|
|
44934
|
+
const localVarHeaderParameter = {} as any;
|
|
44935
|
+
const localVarQueryParameter = {} as any;
|
|
44936
|
+
|
|
44937
|
+
if(configuration && configuration.apiVersion) {
|
|
44938
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
44939
|
+
}
|
|
44940
|
+
|
|
44941
|
+
|
|
44942
|
+
|
|
44943
|
+
// authentication ultraCartOauth required
|
|
44944
|
+
// oauth required
|
|
44945
|
+
if (configuration && configuration.accessToken) {
|
|
44946
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
44947
|
+
? configuration.accessToken("ultraCartOauth", ["conversation_read"])
|
|
44948
|
+
: configuration.accessToken;
|
|
44949
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
44950
|
+
}
|
|
44951
|
+
|
|
44952
|
+
// authentication ultraCartSimpleApiKey required
|
|
44953
|
+
if (configuration && configuration.apiKey) {
|
|
44954
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
44955
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
44956
|
+
: configuration.apiKey;
|
|
44957
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
44958
|
+
}
|
|
44959
|
+
|
|
44960
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
44961
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
44962
|
+
delete localVarUrlObj.search;
|
|
44963
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
44964
|
+
|
|
44965
|
+
return {
|
|
44966
|
+
url: url.format(localVarUrlObj),
|
|
44967
|
+
options: localVarRequestOptions,
|
|
44968
|
+
};
|
|
44969
|
+
},
|
|
44834
44970
|
/**
|
|
44835
44971
|
* Insert a canned message
|
|
44836
44972
|
* @summary Insert a canned message
|
|
@@ -45917,6 +46053,26 @@ export const ConversationApiFp = function(configuration?: Configuration) {
|
|
|
45917
46053
|
});
|
|
45918
46054
|
};
|
|
45919
46055
|
},
|
|
46056
|
+
/**
|
|
46057
|
+
* Get location data for engagement configuration
|
|
46058
|
+
* @summary Get location data for engagement configuration
|
|
46059
|
+
* @param {*} [options] Override http request option.
|
|
46060
|
+
* @throws {RequiredError}
|
|
46061
|
+
*/
|
|
46062
|
+
getLocationsForEngagement(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationLocationsResponse> {
|
|
46063
|
+
const localVarFetchArgs = ConversationApiFetchParamCreator(configuration).getLocationsForEngagement(options);
|
|
46064
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
46065
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
46066
|
+
|
|
46067
|
+
if (response.status >= 200 && response.status < 300) {
|
|
46068
|
+
return response.json();
|
|
46069
|
+
|
|
46070
|
+
} else {
|
|
46071
|
+
throw response;
|
|
46072
|
+
}
|
|
46073
|
+
});
|
|
46074
|
+
};
|
|
46075
|
+
},
|
|
45920
46076
|
/**
|
|
45921
46077
|
* Insert a canned message
|
|
45922
46078
|
* @summary Insert a canned message
|
|
@@ -46371,6 +46527,15 @@ export const ConversationApiFactory = function (configuration?: Configuration, f
|
|
|
46371
46527
|
getConversationsSearch(search_request: ConversationSearchRequest, options?: any) {
|
|
46372
46528
|
return ConversationApiFp(configuration).getConversationsSearch(search_request, options)(fetch, basePath);
|
|
46373
46529
|
},
|
|
46530
|
+
/**
|
|
46531
|
+
* Get location data for engagement configuration
|
|
46532
|
+
* @summary Get location data for engagement configuration
|
|
46533
|
+
* @param {*} [options] Override http request option.
|
|
46534
|
+
* @throws {RequiredError}
|
|
46535
|
+
*/
|
|
46536
|
+
getLocationsForEngagement(options?: any) {
|
|
46537
|
+
return ConversationApiFp(configuration).getLocationsForEngagement(options)(fetch, basePath);
|
|
46538
|
+
},
|
|
46374
46539
|
/**
|
|
46375
46540
|
* Insert a canned message
|
|
46376
46541
|
* @summary Insert a canned message
|
|
@@ -46693,6 +46858,15 @@ export interface ConversationApiInterface {
|
|
|
46693
46858
|
*/
|
|
46694
46859
|
getConversationsSearch(search_request: ConversationSearchRequest, options?: any): Promise<ConversationSearchResponse>;
|
|
46695
46860
|
|
|
46861
|
+
/**
|
|
46862
|
+
* Get location data for engagement configuration
|
|
46863
|
+
* @summary Get location data for engagement configuration
|
|
46864
|
+
* @param {*} [options] Override http request option.
|
|
46865
|
+
* @throws {RequiredError}
|
|
46866
|
+
* @memberof ConversationApiInterface
|
|
46867
|
+
*/
|
|
46868
|
+
getLocationsForEngagement(options?: any): Promise<ConversationLocationsResponse>;
|
|
46869
|
+
|
|
46696
46870
|
/**
|
|
46697
46871
|
* Insert a canned message
|
|
46698
46872
|
* @summary Insert a canned message
|
|
@@ -47053,6 +47227,17 @@ export class ConversationApi extends BaseAPI implements ConversationApiInterface
|
|
|
47053
47227
|
return ConversationApiFp(this.configuration).getConversationsSearch(search_request, options)(this.fetch, this.basePath);
|
|
47054
47228
|
}
|
|
47055
47229
|
|
|
47230
|
+
/**
|
|
47231
|
+
* Get location data for engagement configuration
|
|
47232
|
+
* @summary Get location data for engagement configuration
|
|
47233
|
+
* @param {*} [options] Override http request option.
|
|
47234
|
+
* @throws {RequiredError}
|
|
47235
|
+
* @memberof ConversationApi
|
|
47236
|
+
*/
|
|
47237
|
+
public getLocationsForEngagement(options?: any) {
|
|
47238
|
+
return ConversationApiFp(this.configuration).getLocationsForEngagement(options)(this.fetch, this.basePath);
|
|
47239
|
+
}
|
|
47240
|
+
|
|
47056
47241
|
/**
|
|
47057
47242
|
* Insert a canned message
|
|
47058
47243
|
* @summary Insert a canned message
|
package/dist/api.d.ts
CHANGED
|
@@ -7545,6 +7545,87 @@ export interface ConversationJoinRequest {
|
|
|
7545
7545
|
*/
|
|
7546
7546
|
participant_language_iso_code?: string;
|
|
7547
7547
|
}
|
|
7548
|
+
/**
|
|
7549
|
+
*
|
|
7550
|
+
* @export
|
|
7551
|
+
* @interface ConversationLocationCountry
|
|
7552
|
+
*/
|
|
7553
|
+
export interface ConversationLocationCountry {
|
|
7554
|
+
/**
|
|
7555
|
+
*
|
|
7556
|
+
* @type {string}
|
|
7557
|
+
* @memberof ConversationLocationCountry
|
|
7558
|
+
*/
|
|
7559
|
+
iso2?: string;
|
|
7560
|
+
/**
|
|
7561
|
+
*
|
|
7562
|
+
* @type {string}
|
|
7563
|
+
* @memberof ConversationLocationCountry
|
|
7564
|
+
*/
|
|
7565
|
+
name?: string;
|
|
7566
|
+
/**
|
|
7567
|
+
*
|
|
7568
|
+
* @type {Array<ConversationLocationStateProvince>}
|
|
7569
|
+
* @memberof ConversationLocationCountry
|
|
7570
|
+
*/
|
|
7571
|
+
state_provinces?: Array<ConversationLocationStateProvince>;
|
|
7572
|
+
}
|
|
7573
|
+
/**
|
|
7574
|
+
*
|
|
7575
|
+
* @export
|
|
7576
|
+
* @interface ConversationLocationStateProvince
|
|
7577
|
+
*/
|
|
7578
|
+
export interface ConversationLocationStateProvince {
|
|
7579
|
+
/**
|
|
7580
|
+
*
|
|
7581
|
+
* @type {string}
|
|
7582
|
+
* @memberof ConversationLocationStateProvince
|
|
7583
|
+
*/
|
|
7584
|
+
abbreviation?: string;
|
|
7585
|
+
/**
|
|
7586
|
+
*
|
|
7587
|
+
* @type {string}
|
|
7588
|
+
* @memberof ConversationLocationStateProvince
|
|
7589
|
+
*/
|
|
7590
|
+
name?: string;
|
|
7591
|
+
}
|
|
7592
|
+
/**
|
|
7593
|
+
*
|
|
7594
|
+
* @export
|
|
7595
|
+
* @interface ConversationLocationsResponse
|
|
7596
|
+
*/
|
|
7597
|
+
export interface ConversationLocationsResponse {
|
|
7598
|
+
/**
|
|
7599
|
+
*
|
|
7600
|
+
* @type {Array<ConversationLocationCountry>}
|
|
7601
|
+
* @memberof ConversationLocationsResponse
|
|
7602
|
+
*/
|
|
7603
|
+
countries?: Array<ConversationLocationCountry>;
|
|
7604
|
+
/**
|
|
7605
|
+
*
|
|
7606
|
+
* @type {ModelError}
|
|
7607
|
+
* @memberof ConversationLocationsResponse
|
|
7608
|
+
*/
|
|
7609
|
+
error?: ModelError;
|
|
7610
|
+
/**
|
|
7611
|
+
*
|
|
7612
|
+
* @type {ResponseMetadata}
|
|
7613
|
+
* @memberof ConversationLocationsResponse
|
|
7614
|
+
*/
|
|
7615
|
+
metadata?: ResponseMetadata;
|
|
7616
|
+
/**
|
|
7617
|
+
* Indicates if API call was successful
|
|
7618
|
+
* @type {boolean}
|
|
7619
|
+
* @memberof ConversationLocationsResponse
|
|
7620
|
+
*/
|
|
7621
|
+
success?: boolean;
|
|
7622
|
+
/**
|
|
7623
|
+
*
|
|
7624
|
+
* @type {Warning}
|
|
7625
|
+
* @memberof ConversationLocationsResponse
|
|
7626
|
+
*/
|
|
7627
|
+
warning?: Warning;
|
|
7628
|
+
}
|
|
7548
7629
|
/**
|
|
7549
7630
|
*
|
|
7550
7631
|
* @export
|
|
@@ -8744,7 +8825,7 @@ export declare namespace ConversationWebsocketMessage {
|
|
|
8744
8825
|
Rrweb,
|
|
8745
8826
|
ParticipantUpdate,
|
|
8746
8827
|
ParticipantJoin,
|
|
8747
|
-
|
|
8828
|
+
ParticipantLeft,
|
|
8748
8829
|
ReadMessage,
|
|
8749
8830
|
Typing,
|
|
8750
8831
|
AddCoupon,
|
|
@@ -31593,6 +31674,12 @@ export interface PricingTier {
|
|
|
31593
31674
|
* @memberof PricingTier
|
|
31594
31675
|
*/
|
|
31595
31676
|
exclude_from_free_promotion?: boolean;
|
|
31677
|
+
/**
|
|
31678
|
+
* Exempt from Loyalty Rewards
|
|
31679
|
+
* @type {boolean}
|
|
31680
|
+
* @memberof PricingTier
|
|
31681
|
+
*/
|
|
31682
|
+
exempt_loyalty_rewards?: boolean;
|
|
31596
31683
|
/**
|
|
31597
31684
|
* Exempt shipping handling charge
|
|
31598
31685
|
* @type {boolean}
|
|
@@ -39808,6 +39895,13 @@ export declare const ConversationApiFetchParamCreator: (configuration?: Configur
|
|
|
39808
39895
|
* @throws {RequiredError}
|
|
39809
39896
|
*/
|
|
39810
39897
|
getConversationsSearch(search_request: ConversationSearchRequest, options?: any): FetchArgs;
|
|
39898
|
+
/**
|
|
39899
|
+
* Get location data for engagement configuration
|
|
39900
|
+
* @summary Get location data for engagement configuration
|
|
39901
|
+
* @param {*} [options] Override http request option.
|
|
39902
|
+
* @throws {RequiredError}
|
|
39903
|
+
*/
|
|
39904
|
+
getLocationsForEngagement(options?: any): FetchArgs;
|
|
39811
39905
|
/**
|
|
39812
39906
|
* Insert a canned message
|
|
39813
39907
|
* @summary Insert a canned message
|
|
@@ -40065,6 +40159,13 @@ export declare const ConversationApiFp: (configuration?: Configuration) => {
|
|
|
40065
40159
|
* @throws {RequiredError}
|
|
40066
40160
|
*/
|
|
40067
40161
|
getConversationsSearch(search_request: ConversationSearchRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationSearchResponse>;
|
|
40162
|
+
/**
|
|
40163
|
+
* Get location data for engagement configuration
|
|
40164
|
+
* @summary Get location data for engagement configuration
|
|
40165
|
+
* @param {*} [options] Override http request option.
|
|
40166
|
+
* @throws {RequiredError}
|
|
40167
|
+
*/
|
|
40168
|
+
getLocationsForEngagement(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationLocationsResponse>;
|
|
40068
40169
|
/**
|
|
40069
40170
|
* Insert a canned message
|
|
40070
40171
|
* @summary Insert a canned message
|
|
@@ -40322,6 +40423,13 @@ export declare const ConversationApiFactory: (configuration?: Configuration, fet
|
|
|
40322
40423
|
* @throws {RequiredError}
|
|
40323
40424
|
*/
|
|
40324
40425
|
getConversationsSearch(search_request: ConversationSearchRequest, options?: any): Promise<ConversationSearchResponse>;
|
|
40426
|
+
/**
|
|
40427
|
+
* Get location data for engagement configuration
|
|
40428
|
+
* @summary Get location data for engagement configuration
|
|
40429
|
+
* @param {*} [options] Override http request option.
|
|
40430
|
+
* @throws {RequiredError}
|
|
40431
|
+
*/
|
|
40432
|
+
getLocationsForEngagement(options?: any): Promise<ConversationLocationsResponse>;
|
|
40325
40433
|
/**
|
|
40326
40434
|
* Insert a canned message
|
|
40327
40435
|
* @summary Insert a canned message
|
|
@@ -40599,6 +40707,14 @@ export interface ConversationApiInterface {
|
|
|
40599
40707
|
* @memberof ConversationApiInterface
|
|
40600
40708
|
*/
|
|
40601
40709
|
getConversationsSearch(search_request: ConversationSearchRequest, options?: any): Promise<ConversationSearchResponse>;
|
|
40710
|
+
/**
|
|
40711
|
+
* Get location data for engagement configuration
|
|
40712
|
+
* @summary Get location data for engagement configuration
|
|
40713
|
+
* @param {*} [options] Override http request option.
|
|
40714
|
+
* @throws {RequiredError}
|
|
40715
|
+
* @memberof ConversationApiInterface
|
|
40716
|
+
*/
|
|
40717
|
+
getLocationsForEngagement(options?: any): Promise<ConversationLocationsResponse>;
|
|
40602
40718
|
/**
|
|
40603
40719
|
* Insert a canned message
|
|
40604
40720
|
* @summary Insert a canned message
|
|
@@ -40889,6 +41005,14 @@ export declare class ConversationApi extends BaseAPI implements ConversationApiI
|
|
|
40889
41005
|
* @memberof ConversationApi
|
|
40890
41006
|
*/
|
|
40891
41007
|
getConversationsSearch(search_request: ConversationSearchRequest, options?: any): Promise<ConversationSearchResponse>;
|
|
41008
|
+
/**
|
|
41009
|
+
* Get location data for engagement configuration
|
|
41010
|
+
* @summary Get location data for engagement configuration
|
|
41011
|
+
* @param {*} [options] Override http request option.
|
|
41012
|
+
* @throws {RequiredError}
|
|
41013
|
+
* @memberof ConversationApi
|
|
41014
|
+
*/
|
|
41015
|
+
getLocationsForEngagement(options?: any): Promise<ConversationLocationsResponse>;
|
|
40892
41016
|
/**
|
|
40893
41017
|
* Insert a canned message
|
|
40894
41018
|
* @summary Insert a canned message
|
package/dist/api.js
CHANGED
|
@@ -606,7 +606,7 @@ var ConversationWebsocketMessage;
|
|
|
606
606
|
EventTypeEnum[EventTypeEnum["Rrweb"] = 'rrweb'] = "Rrweb";
|
|
607
607
|
EventTypeEnum[EventTypeEnum["ParticipantUpdate"] = 'participant update'] = "ParticipantUpdate";
|
|
608
608
|
EventTypeEnum[EventTypeEnum["ParticipantJoin"] = 'participant join'] = "ParticipantJoin";
|
|
609
|
-
EventTypeEnum[EventTypeEnum["
|
|
609
|
+
EventTypeEnum[EventTypeEnum["ParticipantLeft"] = 'participant left'] = "ParticipantLeft";
|
|
610
610
|
EventTypeEnum[EventTypeEnum["ReadMessage"] = 'read message'] = "ReadMessage";
|
|
611
611
|
EventTypeEnum[EventTypeEnum["Typing"] = 'typing'] = "Typing";
|
|
612
612
|
EventTypeEnum[EventTypeEnum["AddCoupon"] = 'add coupon'] = "AddCoupon";
|
|
@@ -7009,6 +7009,46 @@ var ConversationApiFetchParamCreator = function (configuration) {
|
|
|
7009
7009
|
options: localVarRequestOptions,
|
|
7010
7010
|
};
|
|
7011
7011
|
},
|
|
7012
|
+
/**
|
|
7013
|
+
* Get location data for engagement configuration
|
|
7014
|
+
* @summary Get location data for engagement configuration
|
|
7015
|
+
* @param {*} [options] Override http request option.
|
|
7016
|
+
* @throws {RequiredError}
|
|
7017
|
+
*/
|
|
7018
|
+
getLocationsForEngagement: function (options) {
|
|
7019
|
+
if (options === void 0) { options = {}; }
|
|
7020
|
+
var localVarPath = "/conversation/locations";
|
|
7021
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
7022
|
+
var localVarRequestOptions = Object.assign({ method: 'POST' }, options);
|
|
7023
|
+
var localVarHeaderParameter = {};
|
|
7024
|
+
var localVarQueryParameter = {};
|
|
7025
|
+
if (configuration && configuration.apiVersion) {
|
|
7026
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
7027
|
+
}
|
|
7028
|
+
// authentication ultraCartOauth required
|
|
7029
|
+
// oauth required
|
|
7030
|
+
if (configuration && configuration.accessToken) {
|
|
7031
|
+
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
7032
|
+
? configuration.accessToken("ultraCartOauth", ["conversation_read"])
|
|
7033
|
+
: configuration.accessToken;
|
|
7034
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
7035
|
+
}
|
|
7036
|
+
// authentication ultraCartSimpleApiKey required
|
|
7037
|
+
if (configuration && configuration.apiKey) {
|
|
7038
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
7039
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
7040
|
+
: configuration.apiKey;
|
|
7041
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
7042
|
+
}
|
|
7043
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
7044
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
7045
|
+
delete localVarUrlObj.search;
|
|
7046
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
7047
|
+
return {
|
|
7048
|
+
url: url.format(localVarUrlObj),
|
|
7049
|
+
options: localVarRequestOptions,
|
|
7050
|
+
};
|
|
7051
|
+
},
|
|
7012
7052
|
/**
|
|
7013
7053
|
* Insert a canned message
|
|
7014
7054
|
* @summary Insert a canned message
|
|
@@ -8032,6 +8072,27 @@ var ConversationApiFp = function (configuration) {
|
|
|
8032
8072
|
});
|
|
8033
8073
|
};
|
|
8034
8074
|
},
|
|
8075
|
+
/**
|
|
8076
|
+
* Get location data for engagement configuration
|
|
8077
|
+
* @summary Get location data for engagement configuration
|
|
8078
|
+
* @param {*} [options] Override http request option.
|
|
8079
|
+
* @throws {RequiredError}
|
|
8080
|
+
*/
|
|
8081
|
+
getLocationsForEngagement: function (options) {
|
|
8082
|
+
var localVarFetchArgs = (0, exports.ConversationApiFetchParamCreator)(configuration).getLocationsForEngagement(options);
|
|
8083
|
+
return function (fetch, basePath) {
|
|
8084
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
8085
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
8086
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
8087
|
+
if (response.status >= 200 && response.status < 300) {
|
|
8088
|
+
return response.json();
|
|
8089
|
+
}
|
|
8090
|
+
else {
|
|
8091
|
+
throw response;
|
|
8092
|
+
}
|
|
8093
|
+
});
|
|
8094
|
+
};
|
|
8095
|
+
},
|
|
8035
8096
|
/**
|
|
8036
8097
|
* Insert a canned message
|
|
8037
8098
|
* @summary Insert a canned message
|
|
@@ -8498,6 +8559,15 @@ var ConversationApiFactory = function (configuration, fetch, basePath) {
|
|
|
8498
8559
|
getConversationsSearch: function (search_request, options) {
|
|
8499
8560
|
return (0, exports.ConversationApiFp)(configuration).getConversationsSearch(search_request, options)(fetch, basePath);
|
|
8500
8561
|
},
|
|
8562
|
+
/**
|
|
8563
|
+
* Get location data for engagement configuration
|
|
8564
|
+
* @summary Get location data for engagement configuration
|
|
8565
|
+
* @param {*} [options] Override http request option.
|
|
8566
|
+
* @throws {RequiredError}
|
|
8567
|
+
*/
|
|
8568
|
+
getLocationsForEngagement: function (options) {
|
|
8569
|
+
return (0, exports.ConversationApiFp)(configuration).getLocationsForEngagement(options)(fetch, basePath);
|
|
8570
|
+
},
|
|
8501
8571
|
/**
|
|
8502
8572
|
* Insert a canned message
|
|
8503
8573
|
* @summary Insert a canned message
|
|
@@ -8844,6 +8914,16 @@ var ConversationApi = /** @class */ (function (_super) {
|
|
|
8844
8914
|
ConversationApi.prototype.getConversationsSearch = function (search_request, options) {
|
|
8845
8915
|
return (0, exports.ConversationApiFp)(this.configuration).getConversationsSearch(search_request, options)(this.fetch, this.basePath);
|
|
8846
8916
|
};
|
|
8917
|
+
/**
|
|
8918
|
+
* Get location data for engagement configuration
|
|
8919
|
+
* @summary Get location data for engagement configuration
|
|
8920
|
+
* @param {*} [options] Override http request option.
|
|
8921
|
+
* @throws {RequiredError}
|
|
8922
|
+
* @memberof ConversationApi
|
|
8923
|
+
*/
|
|
8924
|
+
ConversationApi.prototype.getLocationsForEngagement = function (options) {
|
|
8925
|
+
return (0, exports.ConversationApiFp)(this.configuration).getLocationsForEngagement(options)(this.fetch, this.basePath);
|
|
8926
|
+
};
|
|
8847
8927
|
/**
|
|
8848
8928
|
* Insert a canned message
|
|
8849
8929
|
* @summary Insert a canned message
|