ultracart_rest_api_v2_typescript 3.10.20 → 3.10.21

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.20
1
+ ## ultracart_rest_api_v2_typescript@3.10.21
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.20 --save
39
+ npm install ultracart_rest_api_v2_typescript@3.10.21 --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.21 | 07/18/2022 | twilio dev |
57
58
  | 3.10.20 | 07/14/2022 | Add channel storefront_oid to the customer activity record |
58
59
  | 3.10.19 | 07/11/2022 | Customer API - mergeCustomer method |
59
60
  | 3.10.18 | 06/23/2022 | removed unneeded consumes declarations on several api calls (yaml fix) |
package/api.ts CHANGED
@@ -6289,6 +6289,18 @@ export interface ConversationAgentAuthResponse {
6289
6289
  * @memberof ConversationAgentAuthResponse
6290
6290
  */
6291
6291
  jwt?: string;
6292
+ /**
6293
+ *
6294
+ * @type {string}
6295
+ * @memberof ConversationAgentAuthResponse
6296
+ */
6297
+ merchant_id?: string;
6298
+ /**
6299
+ *
6300
+ * @type {Array<string>}
6301
+ * @memberof ConversationAgentAuthResponse
6302
+ */
6303
+ twilio_phone_numbers?: Array<string>;
6292
6304
  /**
6293
6305
  *
6294
6306
  * @type {string}
@@ -38376,6 +38388,58 @@ export const ConversationApiFetchParamCreator = function (configuration?: Config
38376
38388
  options: localVarRequestOptions,
38377
38389
  };
38378
38390
  },
38391
+ /**
38392
+ * Get a presigned conersation multimedia upload URL
38393
+ * @summary Get a presigned conersation multimedia upload URL
38394
+ * @param {string} extension
38395
+ * @param {*} [options] Override http request option.
38396
+ * @throws {RequiredError}
38397
+ */
38398
+ getConversationMultimediaUploadUrl(extension: string, options: any = {}): FetchArgs {
38399
+ // verify required parameter 'extension' is not null or undefined
38400
+ if (extension === null || extension === undefined) {
38401
+ throw new RequiredError('extension','Required parameter extension was null or undefined when calling getConversationMultimediaUploadUrl.');
38402
+ }
38403
+ const localVarPath = `/conversation/upload_url/{extension}`
38404
+ .replace(`{${"extension"}}`, encodeURIComponent(String(extension)));
38405
+ const localVarUrlObj = url.parse(localVarPath, true);
38406
+ const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
38407
+ const localVarHeaderParameter = {} as any;
38408
+ const localVarQueryParameter = {} as any;
38409
+
38410
+ if(configuration && configuration.apiVersion) {
38411
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
38412
+ }
38413
+
38414
+
38415
+
38416
+ // authentication ultraCartOauth required
38417
+ // oauth required
38418
+ if (configuration && configuration.accessToken) {
38419
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
38420
+ ? configuration.accessToken("ultraCartOauth", ["conversation_write"])
38421
+ : configuration.accessToken;
38422
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
38423
+ }
38424
+
38425
+ // authentication ultraCartSimpleApiKey required
38426
+ if (configuration && configuration.apiKey) {
38427
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
38428
+ ? configuration.apiKey("x-ultracart-simple-key")
38429
+ : configuration.apiKey;
38430
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
38431
+ }
38432
+
38433
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
38434
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
38435
+ delete localVarUrlObj.search;
38436
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
38437
+
38438
+ return {
38439
+ url: url.format(localVarUrlObj),
38440
+ options: localVarRequestOptions,
38441
+ };
38442
+ },
38379
38443
  /**
38380
38444
  * Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
38381
38445
  * @summary Retrieve a list of conversation summaries newest to oldest
@@ -38641,6 +38705,27 @@ export const ConversationApiFp = function(configuration?: Configuration) {
38641
38705
  });
38642
38706
  };
38643
38707
  },
38708
+ /**
38709
+ * Get a presigned conersation multimedia upload URL
38710
+ * @summary Get a presigned conersation multimedia upload URL
38711
+ * @param {string} extension
38712
+ * @param {*} [options] Override http request option.
38713
+ * @throws {RequiredError}
38714
+ */
38715
+ getConversationMultimediaUploadUrl(extension: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response> {
38716
+ const localVarFetchArgs = ConversationApiFetchParamCreator(configuration).getConversationMultimediaUploadUrl(extension, options);
38717
+ return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
38718
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
38719
+
38720
+ if (response.status >= 200 && response.status < 300) {
38721
+ return response;
38722
+
38723
+ } else {
38724
+ throw response;
38725
+ }
38726
+ });
38727
+ };
38728
+ },
38644
38729
  /**
38645
38730
  * Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
38646
38731
  * @summary Retrieve a list of conversation summaries newest to oldest
@@ -38754,6 +38839,16 @@ export const ConversationApiFactory = function (configuration?: Configuration, f
38754
38839
  getConversation(conversation_uuid: string, options?: any) {
38755
38840
  return ConversationApiFp(configuration).getConversation(conversation_uuid, options)(fetch, basePath);
38756
38841
  },
38842
+ /**
38843
+ * Get a presigned conersation multimedia upload URL
38844
+ * @summary Get a presigned conersation multimedia upload URL
38845
+ * @param {string} extension
38846
+ * @param {*} [options] Override http request option.
38847
+ * @throws {RequiredError}
38848
+ */
38849
+ getConversationMultimediaUploadUrl(extension: string, options?: any) {
38850
+ return ConversationApiFp(configuration).getConversationMultimediaUploadUrl(extension, options)(fetch, basePath);
38851
+ },
38757
38852
  /**
38758
38853
  * Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
38759
38854
  * @summary Retrieve a list of conversation summaries newest to oldest
@@ -38823,6 +38918,16 @@ export interface ConversationApiInterface {
38823
38918
  */
38824
38919
  getConversation(conversation_uuid: string, options?: any): Promise<Conversation>;
38825
38920
 
38921
+ /**
38922
+ * Get a presigned conersation multimedia upload URL
38923
+ * @summary Get a presigned conersation multimedia upload URL
38924
+ * @param {string} extension
38925
+ * @param {*} [options] Override http request option.
38926
+ * @throws {RequiredError}
38927
+ * @memberof ConversationApiInterface
38928
+ */
38929
+ getConversationMultimediaUploadUrl(extension: string, options?: any): Promise<{}>;
38930
+
38826
38931
  /**
38827
38932
  * Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
38828
38933
  * @summary Retrieve a list of conversation summaries newest to oldest
@@ -38896,6 +39001,18 @@ export class ConversationApi extends BaseAPI implements ConversationApiInterface
38896
39001
  return ConversationApiFp(this.configuration).getConversation(conversation_uuid, options)(this.fetch, this.basePath);
38897
39002
  }
38898
39003
 
39004
+ /**
39005
+ * Get a presigned conersation multimedia upload URL
39006
+ * @summary Get a presigned conersation multimedia upload URL
39007
+ * @param {string} extension
39008
+ * @param {*} [options] Override http request option.
39009
+ * @throws {RequiredError}
39010
+ * @memberof ConversationApi
39011
+ */
39012
+ public getConversationMultimediaUploadUrl(extension: string, options?: any) {
39013
+ return ConversationApiFp(this.configuration).getConversationMultimediaUploadUrl(extension, options)(this.fetch, this.basePath);
39014
+ }
39015
+
38899
39016
  /**
38900
39017
  * Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
38901
39018
  * @summary Retrieve a list of conversation summaries newest to oldest
package/dist/api.d.ts CHANGED
@@ -6142,6 +6142,18 @@ export interface ConversationAgentAuthResponse {
6142
6142
  * @memberof ConversationAgentAuthResponse
6143
6143
  */
6144
6144
  jwt?: string;
6145
+ /**
6146
+ *
6147
+ * @type {string}
6148
+ * @memberof ConversationAgentAuthResponse
6149
+ */
6150
+ merchant_id?: string;
6151
+ /**
6152
+ *
6153
+ * @type {Array<string>}
6154
+ * @memberof ConversationAgentAuthResponse
6155
+ */
6156
+ twilio_phone_numbers?: Array<string>;
6145
6157
  /**
6146
6158
  *
6147
6159
  * @type {string}
@@ -34602,6 +34614,14 @@ export declare const ConversationApiFetchParamCreator: (configuration?: Configur
34602
34614
  * @throws {RequiredError}
34603
34615
  */
34604
34616
  getConversation(conversation_uuid: string, options?: any): FetchArgs;
34617
+ /**
34618
+ * Get a presigned conersation multimedia upload URL
34619
+ * @summary Get a presigned conersation multimedia upload URL
34620
+ * @param {string} extension
34621
+ * @param {*} [options] Override http request option.
34622
+ * @throws {RequiredError}
34623
+ */
34624
+ getConversationMultimediaUploadUrl(extension: string, options?: any): FetchArgs;
34605
34625
  /**
34606
34626
  * Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
34607
34627
  * @summary Retrieve a list of conversation summaries newest to oldest
@@ -34656,6 +34676,14 @@ export declare const ConversationApiFp: (configuration?: Configuration) => {
34656
34676
  * @throws {RequiredError}
34657
34677
  */
34658
34678
  getConversation(conversation_uuid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Conversation>;
34679
+ /**
34680
+ * Get a presigned conersation multimedia upload URL
34681
+ * @summary Get a presigned conersation multimedia upload URL
34682
+ * @param {string} extension
34683
+ * @param {*} [options] Override http request option.
34684
+ * @throws {RequiredError}
34685
+ */
34686
+ getConversationMultimediaUploadUrl(extension: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
34659
34687
  /**
34660
34688
  * Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
34661
34689
  * @summary Retrieve a list of conversation summaries newest to oldest
@@ -34710,6 +34738,14 @@ export declare const ConversationApiFactory: (configuration?: Configuration, fet
34710
34738
  * @throws {RequiredError}
34711
34739
  */
34712
34740
  getConversation(conversation_uuid: string, options?: any): Promise<Conversation>;
34741
+ /**
34742
+ * Get a presigned conersation multimedia upload URL
34743
+ * @summary Get a presigned conersation multimedia upload URL
34744
+ * @param {string} extension
34745
+ * @param {*} [options] Override http request option.
34746
+ * @throws {RequiredError}
34747
+ */
34748
+ getConversationMultimediaUploadUrl(extension: string, options?: any): Promise<Response>;
34713
34749
  /**
34714
34750
  * Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
34715
34751
  * @summary Retrieve a list of conversation summaries newest to oldest
@@ -34767,6 +34803,15 @@ export interface ConversationApiInterface {
34767
34803
  * @memberof ConversationApiInterface
34768
34804
  */
34769
34805
  getConversation(conversation_uuid: string, options?: any): Promise<Conversation>;
34806
+ /**
34807
+ * Get a presigned conersation multimedia upload URL
34808
+ * @summary Get a presigned conersation multimedia upload URL
34809
+ * @param {string} extension
34810
+ * @param {*} [options] Override http request option.
34811
+ * @throws {RequiredError}
34812
+ * @memberof ConversationApiInterface
34813
+ */
34814
+ getConversationMultimediaUploadUrl(extension: string, options?: any): Promise<{}>;
34770
34815
  /**
34771
34816
  * Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
34772
34817
  * @summary Retrieve a list of conversation summaries newest to oldest
@@ -34829,6 +34874,15 @@ export declare class ConversationApi extends BaseAPI implements ConversationApiI
34829
34874
  * @memberof ConversationApi
34830
34875
  */
34831
34876
  getConversation(conversation_uuid: string, options?: any): Promise<Conversation>;
34877
+ /**
34878
+ * Get a presigned conersation multimedia upload URL
34879
+ * @summary Get a presigned conersation multimedia upload URL
34880
+ * @param {string} extension
34881
+ * @param {*} [options] Override http request option.
34882
+ * @throws {RequiredError}
34883
+ * @memberof ConversationApi
34884
+ */
34885
+ getConversationMultimediaUploadUrl(extension: string, options?: any): Promise<Response>;
34832
34886
  /**
34833
34887
  * Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
34834
34888
  * @summary Retrieve a list of conversation summaries newest to oldest
package/dist/api.js CHANGED
@@ -5382,6 +5382,52 @@ var ConversationApiFetchParamCreator = function (configuration) {
5382
5382
  options: localVarRequestOptions,
5383
5383
  };
5384
5384
  },
5385
+ /**
5386
+ * Get a presigned conersation multimedia upload URL
5387
+ * @summary Get a presigned conersation multimedia upload URL
5388
+ * @param {string} extension
5389
+ * @param {*} [options] Override http request option.
5390
+ * @throws {RequiredError}
5391
+ */
5392
+ getConversationMultimediaUploadUrl: function (extension, options) {
5393
+ if (options === void 0) { options = {}; }
5394
+ // verify required parameter 'extension' is not null or undefined
5395
+ if (extension === null || extension === undefined) {
5396
+ throw new RequiredError('extension', 'Required parameter extension was null or undefined when calling getConversationMultimediaUploadUrl.');
5397
+ }
5398
+ var localVarPath = "/conversation/upload_url/{extension}"
5399
+ .replace("{".concat("extension", "}"), encodeURIComponent(String(extension)));
5400
+ var localVarUrlObj = url.parse(localVarPath, true);
5401
+ var localVarRequestOptions = Object.assign({ method: 'GET' }, options);
5402
+ var localVarHeaderParameter = {};
5403
+ var localVarQueryParameter = {};
5404
+ if (configuration && configuration.apiVersion) {
5405
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
5406
+ }
5407
+ // authentication ultraCartOauth required
5408
+ // oauth required
5409
+ if (configuration && configuration.accessToken) {
5410
+ var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
5411
+ ? configuration.accessToken("ultraCartOauth", ["conversation_write"])
5412
+ : configuration.accessToken;
5413
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
5414
+ }
5415
+ // authentication ultraCartSimpleApiKey required
5416
+ if (configuration && configuration.apiKey) {
5417
+ var localVarApiKeyValue = typeof configuration.apiKey === 'function'
5418
+ ? configuration.apiKey("x-ultracart-simple-key")
5419
+ : configuration.apiKey;
5420
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
5421
+ }
5422
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
5423
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
5424
+ delete localVarUrlObj.search;
5425
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
5426
+ return {
5427
+ url: url.format(localVarUrlObj),
5428
+ options: localVarRequestOptions,
5429
+ };
5430
+ },
5385
5431
  /**
5386
5432
  * Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
5387
5433
  * @summary Retrieve a list of conversation summaries newest to oldest
@@ -5622,6 +5668,28 @@ var ConversationApiFp = function (configuration) {
5622
5668
  });
5623
5669
  };
5624
5670
  },
5671
+ /**
5672
+ * Get a presigned conersation multimedia upload URL
5673
+ * @summary Get a presigned conersation multimedia upload URL
5674
+ * @param {string} extension
5675
+ * @param {*} [options] Override http request option.
5676
+ * @throws {RequiredError}
5677
+ */
5678
+ getConversationMultimediaUploadUrl: function (extension, options) {
5679
+ var localVarFetchArgs = (0, exports.ConversationApiFetchParamCreator)(configuration).getConversationMultimediaUploadUrl(extension, options);
5680
+ return function (fetch, basePath) {
5681
+ if (fetch === void 0) { fetch = portableFetch; }
5682
+ if (basePath === void 0) { basePath = BASE_PATH; }
5683
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
5684
+ if (response.status >= 200 && response.status < 300) {
5685
+ return response;
5686
+ }
5687
+ else {
5688
+ throw response;
5689
+ }
5690
+ });
5691
+ };
5692
+ },
5625
5693
  /**
5626
5694
  * Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
5627
5695
  * @summary Retrieve a list of conversation summaries newest to oldest
@@ -5739,6 +5807,16 @@ var ConversationApiFactory = function (configuration, fetch, basePath) {
5739
5807
  getConversation: function (conversation_uuid, options) {
5740
5808
  return (0, exports.ConversationApiFp)(configuration).getConversation(conversation_uuid, options)(fetch, basePath);
5741
5809
  },
5810
+ /**
5811
+ * Get a presigned conersation multimedia upload URL
5812
+ * @summary Get a presigned conersation multimedia upload URL
5813
+ * @param {string} extension
5814
+ * @param {*} [options] Override http request option.
5815
+ * @throws {RequiredError}
5816
+ */
5817
+ getConversationMultimediaUploadUrl: function (extension, options) {
5818
+ return (0, exports.ConversationApiFp)(configuration).getConversationMultimediaUploadUrl(extension, options)(fetch, basePath);
5819
+ },
5742
5820
  /**
5743
5821
  * Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
5744
5822
  * @summary Retrieve a list of conversation summaries newest to oldest
@@ -5815,6 +5893,17 @@ var ConversationApi = /** @class */ (function (_super) {
5815
5893
  ConversationApi.prototype.getConversation = function (conversation_uuid, options) {
5816
5894
  return (0, exports.ConversationApiFp)(this.configuration).getConversation(conversation_uuid, options)(this.fetch, this.basePath);
5817
5895
  };
5896
+ /**
5897
+ * Get a presigned conersation multimedia upload URL
5898
+ * @summary Get a presigned conersation multimedia upload URL
5899
+ * @param {string} extension
5900
+ * @param {*} [options] Override http request option.
5901
+ * @throws {RequiredError}
5902
+ * @memberof ConversationApi
5903
+ */
5904
+ ConversationApi.prototype.getConversationMultimediaUploadUrl = function (extension, options) {
5905
+ return (0, exports.ConversationApiFp)(this.configuration).getConversationMultimediaUploadUrl(extension, options)(this.fetch, this.basePath);
5906
+ };
5818
5907
  /**
5819
5908
  * Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
5820
5909
  * @summary Retrieve a list of conversation summaries newest to oldest
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "3.10.20",
3
+ "version": "3.10.21",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "keywords": [