ultracart_rest_api_v2_typescript 3.10.117 → 3.10.118

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.117
1
+ ## ultracart_rest_api_v2_typescript@3.10.118
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.117 --save
39
+ npm install ultracart_rest_api_v2_typescript@3.10.118 --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.118 | 02/17/2023 | convo api - smsUnsubscribeConversation method |
57
58
  | 3.10.117 | 02/15/2023 | added auto order sorting by next_shipment_dts |
58
59
  | 3.10.116 | 02/10/2023 | convo - add storefront_host_name to search request |
59
60
  | 3.10.115 | 02/07/2023 | convo - new event for when a customer joins a queue |
package/api.ts CHANGED
@@ -45729,6 +45729,58 @@ export const ConversationApiFetchParamCreator = function (configuration?: Config
45729
45729
  options: localVarRequestOptions,
45730
45730
  };
45731
45731
  },
45732
+ /**
45733
+ * Unsubscribe any SMS participants in this conversation
45734
+ * @summary Unsubscribe any SMS participants in this conversation
45735
+ * @param {string} conversation_uuid
45736
+ * @param {*} [options] Override http request option.
45737
+ * @throws {RequiredError}
45738
+ */
45739
+ smsUnsubscribeConversation(conversation_uuid: string, options: any = {}): FetchArgs {
45740
+ // verify required parameter 'conversation_uuid' is not null or undefined
45741
+ if (conversation_uuid === null || conversation_uuid === undefined) {
45742
+ throw new RequiredError('conversation_uuid','Required parameter conversation_uuid was null or undefined when calling smsUnsubscribeConversation.');
45743
+ }
45744
+ const localVarPath = `/conversation/conversations/{conversation_uuid}/sms_unsubscribe`
45745
+ .replace(`{${"conversation_uuid"}}`, encodeURIComponent(String(conversation_uuid)));
45746
+ const localVarUrlObj = url.parse(localVarPath, true);
45747
+ const localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
45748
+ const localVarHeaderParameter = {} as any;
45749
+ const localVarQueryParameter = {} as any;
45750
+
45751
+ if(configuration && configuration.apiVersion) {
45752
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
45753
+ }
45754
+
45755
+
45756
+
45757
+ // authentication ultraCartOauth required
45758
+ // oauth required
45759
+ if (configuration && configuration.accessToken) {
45760
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
45761
+ ? configuration.accessToken("ultraCartOauth", ["conversation_write"])
45762
+ : configuration.accessToken;
45763
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
45764
+ }
45765
+
45766
+ // authentication ultraCartSimpleApiKey required
45767
+ if (configuration && configuration.apiKey) {
45768
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
45769
+ ? configuration.apiKey("x-ultracart-simple-key")
45770
+ : configuration.apiKey;
45771
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
45772
+ }
45773
+
45774
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
45775
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
45776
+ delete localVarUrlObj.search;
45777
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
45778
+
45779
+ return {
45780
+ url: url.format(localVarUrlObj),
45781
+ options: localVarRequestOptions,
45782
+ };
45783
+ },
45732
45784
  /**
45733
45785
  * Start a new conversation
45734
45786
  * @summary Start a conversation
@@ -46677,6 +46729,27 @@ export const ConversationApiFp = function(configuration?: Configuration) {
46677
46729
  });
46678
46730
  };
46679
46731
  },
46732
+ /**
46733
+ * Unsubscribe any SMS participants in this conversation
46734
+ * @summary Unsubscribe any SMS participants in this conversation
46735
+ * @param {string} conversation_uuid
46736
+ * @param {*} [options] Override http request option.
46737
+ * @throws {RequiredError}
46738
+ */
46739
+ smsUnsubscribeConversation(conversation_uuid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response> {
46740
+ const localVarFetchArgs = ConversationApiFetchParamCreator(configuration).smsUnsubscribeConversation(conversation_uuid, options);
46741
+ return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
46742
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
46743
+
46744
+ if (response.status >= 200 && response.status < 300) {
46745
+ return response;
46746
+
46747
+ } else {
46748
+ throw response;
46749
+ }
46750
+ });
46751
+ };
46752
+ },
46680
46753
  /**
46681
46754
  * Start a new conversation
46682
46755
  * @summary Start a conversation
@@ -47093,6 +47166,16 @@ export const ConversationApiFactory = function (configuration?: Configuration, f
47093
47166
  searchConversationCannedMessages(search_request: ConversationCannedMessagesSearch, options?: any) {
47094
47167
  return ConversationApiFp(configuration).searchConversationCannedMessages(search_request, options)(fetch, basePath);
47095
47168
  },
47169
+ /**
47170
+ * Unsubscribe any SMS participants in this conversation
47171
+ * @summary Unsubscribe any SMS participants in this conversation
47172
+ * @param {string} conversation_uuid
47173
+ * @param {*} [options] Override http request option.
47174
+ * @throws {RequiredError}
47175
+ */
47176
+ smsUnsubscribeConversation(conversation_uuid: string, options?: any) {
47177
+ return ConversationApiFp(configuration).smsUnsubscribeConversation(conversation_uuid, options)(fetch, basePath);
47178
+ },
47096
47179
  /**
47097
47180
  * Start a new conversation
47098
47181
  * @summary Start a conversation
@@ -47443,6 +47526,16 @@ export interface ConversationApiInterface {
47443
47526
  */
47444
47527
  searchConversationCannedMessages(search_request: ConversationCannedMessagesSearch, options?: any): Promise<ConversationCannedMessagesResponse>;
47445
47528
 
47529
+ /**
47530
+ * Unsubscribe any SMS participants in this conversation
47531
+ * @summary Unsubscribe any SMS participants in this conversation
47532
+ * @param {string} conversation_uuid
47533
+ * @param {*} [options] Override http request option.
47534
+ * @throws {RequiredError}
47535
+ * @memberof ConversationApiInterface
47536
+ */
47537
+ smsUnsubscribeConversation(conversation_uuid: string, options?: any): Promise<{}>;
47538
+
47446
47539
  /**
47447
47540
  * Start a new conversation
47448
47541
  * @summary Start a conversation
@@ -47849,6 +47942,18 @@ export class ConversationApi extends BaseAPI implements ConversationApiInterface
47849
47942
  return ConversationApiFp(this.configuration).searchConversationCannedMessages(search_request, options)(this.fetch, this.basePath);
47850
47943
  }
47851
47944
 
47945
+ /**
47946
+ * Unsubscribe any SMS participants in this conversation
47947
+ * @summary Unsubscribe any SMS participants in this conversation
47948
+ * @param {string} conversation_uuid
47949
+ * @param {*} [options] Override http request option.
47950
+ * @throws {RequiredError}
47951
+ * @memberof ConversationApi
47952
+ */
47953
+ public smsUnsubscribeConversation(conversation_uuid: string, options?: any) {
47954
+ return ConversationApiFp(this.configuration).smsUnsubscribeConversation(conversation_uuid, options)(this.fetch, this.basePath);
47955
+ }
47956
+
47852
47957
  /**
47853
47958
  * Start a new conversation
47854
47959
  * @summary Start a conversation
package/dist/api.d.ts CHANGED
@@ -40297,6 +40297,14 @@ export declare const ConversationApiFetchParamCreator: (configuration?: Configur
40297
40297
  * @throws {RequiredError}
40298
40298
  */
40299
40299
  searchConversationCannedMessages(search_request: ConversationCannedMessagesSearch, options?: any): FetchArgs;
40300
+ /**
40301
+ * Unsubscribe any SMS participants in this conversation
40302
+ * @summary Unsubscribe any SMS participants in this conversation
40303
+ * @param {string} conversation_uuid
40304
+ * @param {*} [options] Override http request option.
40305
+ * @throws {RequiredError}
40306
+ */
40307
+ smsUnsubscribeConversation(conversation_uuid: string, options?: any): FetchArgs;
40300
40308
  /**
40301
40309
  * Start a new conversation
40302
40310
  * @summary Start a conversation
@@ -40576,6 +40584,14 @@ export declare const ConversationApiFp: (configuration?: Configuration) => {
40576
40584
  * @throws {RequiredError}
40577
40585
  */
40578
40586
  searchConversationCannedMessages(search_request: ConversationCannedMessagesSearch, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationCannedMessagesResponse>;
40587
+ /**
40588
+ * Unsubscribe any SMS participants in this conversation
40589
+ * @summary Unsubscribe any SMS participants in this conversation
40590
+ * @param {string} conversation_uuid
40591
+ * @param {*} [options] Override http request option.
40592
+ * @throws {RequiredError}
40593
+ */
40594
+ smsUnsubscribeConversation(conversation_uuid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
40579
40595
  /**
40580
40596
  * Start a new conversation
40581
40597
  * @summary Start a conversation
@@ -40855,6 +40871,14 @@ export declare const ConversationApiFactory: (configuration?: Configuration, fet
40855
40871
  * @throws {RequiredError}
40856
40872
  */
40857
40873
  searchConversationCannedMessages(search_request: ConversationCannedMessagesSearch, options?: any): Promise<ConversationCannedMessagesResponse>;
40874
+ /**
40875
+ * Unsubscribe any SMS participants in this conversation
40876
+ * @summary Unsubscribe any SMS participants in this conversation
40877
+ * @param {string} conversation_uuid
40878
+ * @param {*} [options] Override http request option.
40879
+ * @throws {RequiredError}
40880
+ */
40881
+ smsUnsubscribeConversation(conversation_uuid: string, options?: any): Promise<Response>;
40858
40882
  /**
40859
40883
  * Start a new conversation
40860
40884
  * @summary Start a conversation
@@ -41163,6 +41187,15 @@ export interface ConversationApiInterface {
41163
41187
  * @memberof ConversationApiInterface
41164
41188
  */
41165
41189
  searchConversationCannedMessages(search_request: ConversationCannedMessagesSearch, options?: any): Promise<ConversationCannedMessagesResponse>;
41190
+ /**
41191
+ * Unsubscribe any SMS participants in this conversation
41192
+ * @summary Unsubscribe any SMS participants in this conversation
41193
+ * @param {string} conversation_uuid
41194
+ * @param {*} [options] Override http request option.
41195
+ * @throws {RequiredError}
41196
+ * @memberof ConversationApiInterface
41197
+ */
41198
+ smsUnsubscribeConversation(conversation_uuid: string, options?: any): Promise<{}>;
41166
41199
  /**
41167
41200
  * Start a new conversation
41168
41201
  * @summary Start a conversation
@@ -41478,6 +41511,15 @@ export declare class ConversationApi extends BaseAPI implements ConversationApiI
41478
41511
  * @memberof ConversationApi
41479
41512
  */
41480
41513
  searchConversationCannedMessages(search_request: ConversationCannedMessagesSearch, options?: any): Promise<ConversationCannedMessagesResponse>;
41514
+ /**
41515
+ * Unsubscribe any SMS participants in this conversation
41516
+ * @summary Unsubscribe any SMS participants in this conversation
41517
+ * @param {string} conversation_uuid
41518
+ * @param {*} [options] Override http request option.
41519
+ * @throws {RequiredError}
41520
+ * @memberof ConversationApi
41521
+ */
41522
+ smsUnsubscribeConversation(conversation_uuid: string, options?: any): Promise<Response>;
41481
41523
  /**
41482
41524
  * Start a new conversation
41483
41525
  * @summary Start a conversation
package/dist/api.js CHANGED
@@ -7441,6 +7441,52 @@ var ConversationApiFetchParamCreator = function (configuration) {
7441
7441
  options: localVarRequestOptions,
7442
7442
  };
7443
7443
  },
7444
+ /**
7445
+ * Unsubscribe any SMS participants in this conversation
7446
+ * @summary Unsubscribe any SMS participants in this conversation
7447
+ * @param {string} conversation_uuid
7448
+ * @param {*} [options] Override http request option.
7449
+ * @throws {RequiredError}
7450
+ */
7451
+ smsUnsubscribeConversation: function (conversation_uuid, options) {
7452
+ if (options === void 0) { options = {}; }
7453
+ // verify required parameter 'conversation_uuid' is not null or undefined
7454
+ if (conversation_uuid === null || conversation_uuid === undefined) {
7455
+ throw new RequiredError('conversation_uuid', 'Required parameter conversation_uuid was null or undefined when calling smsUnsubscribeConversation.');
7456
+ }
7457
+ var localVarPath = "/conversation/conversations/{conversation_uuid}/sms_unsubscribe"
7458
+ .replace("{".concat("conversation_uuid", "}"), encodeURIComponent(String(conversation_uuid)));
7459
+ var localVarUrlObj = url.parse(localVarPath, true);
7460
+ var localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
7461
+ var localVarHeaderParameter = {};
7462
+ var localVarQueryParameter = {};
7463
+ if (configuration && configuration.apiVersion) {
7464
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
7465
+ }
7466
+ // authentication ultraCartOauth required
7467
+ // oauth required
7468
+ if (configuration && configuration.accessToken) {
7469
+ var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
7470
+ ? configuration.accessToken("ultraCartOauth", ["conversation_write"])
7471
+ : configuration.accessToken;
7472
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
7473
+ }
7474
+ // authentication ultraCartSimpleApiKey required
7475
+ if (configuration && configuration.apiKey) {
7476
+ var localVarApiKeyValue = typeof configuration.apiKey === 'function'
7477
+ ? configuration.apiKey("x-ultracart-simple-key")
7478
+ : configuration.apiKey;
7479
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
7480
+ }
7481
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
7482
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
7483
+ delete localVarUrlObj.search;
7484
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
7485
+ return {
7486
+ url: url.format(localVarUrlObj),
7487
+ options: localVarRequestOptions,
7488
+ };
7489
+ },
7444
7490
  /**
7445
7491
  * Start a new conversation
7446
7492
  * @summary Start a conversation
@@ -8375,6 +8421,28 @@ var ConversationApiFp = function (configuration) {
8375
8421
  });
8376
8422
  };
8377
8423
  },
8424
+ /**
8425
+ * Unsubscribe any SMS participants in this conversation
8426
+ * @summary Unsubscribe any SMS participants in this conversation
8427
+ * @param {string} conversation_uuid
8428
+ * @param {*} [options] Override http request option.
8429
+ * @throws {RequiredError}
8430
+ */
8431
+ smsUnsubscribeConversation: function (conversation_uuid, options) {
8432
+ var localVarFetchArgs = (0, exports.ConversationApiFetchParamCreator)(configuration).smsUnsubscribeConversation(conversation_uuid, options);
8433
+ return function (fetch, basePath) {
8434
+ if (fetch === void 0) { fetch = portableFetch; }
8435
+ if (basePath === void 0) { basePath = BASE_PATH; }
8436
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
8437
+ if (response.status >= 200 && response.status < 300) {
8438
+ return response;
8439
+ }
8440
+ else {
8441
+ throw response;
8442
+ }
8443
+ });
8444
+ };
8445
+ },
8378
8446
  /**
8379
8447
  * Start a new conversation
8380
8448
  * @summary Start a conversation
@@ -8797,6 +8865,16 @@ var ConversationApiFactory = function (configuration, fetch, basePath) {
8797
8865
  searchConversationCannedMessages: function (search_request, options) {
8798
8866
  return (0, exports.ConversationApiFp)(configuration).searchConversationCannedMessages(search_request, options)(fetch, basePath);
8799
8867
  },
8868
+ /**
8869
+ * Unsubscribe any SMS participants in this conversation
8870
+ * @summary Unsubscribe any SMS participants in this conversation
8871
+ * @param {string} conversation_uuid
8872
+ * @param {*} [options] Override http request option.
8873
+ * @throws {RequiredError}
8874
+ */
8875
+ smsUnsubscribeConversation: function (conversation_uuid, options) {
8876
+ return (0, exports.ConversationApiFp)(configuration).smsUnsubscribeConversation(conversation_uuid, options)(fetch, basePath);
8877
+ },
8800
8878
  /**
8801
8879
  * Start a new conversation
8802
8880
  * @summary Start a conversation
@@ -9180,6 +9258,17 @@ var ConversationApi = /** @class */ (function (_super) {
9180
9258
  ConversationApi.prototype.searchConversationCannedMessages = function (search_request, options) {
9181
9259
  return (0, exports.ConversationApiFp)(this.configuration).searchConversationCannedMessages(search_request, options)(this.fetch, this.basePath);
9182
9260
  };
9261
+ /**
9262
+ * Unsubscribe any SMS participants in this conversation
9263
+ * @summary Unsubscribe any SMS participants in this conversation
9264
+ * @param {string} conversation_uuid
9265
+ * @param {*} [options] Override http request option.
9266
+ * @throws {RequiredError}
9267
+ * @memberof ConversationApi
9268
+ */
9269
+ ConversationApi.prototype.smsUnsubscribeConversation = function (conversation_uuid, options) {
9270
+ return (0, exports.ConversationApiFp)(this.configuration).smsUnsubscribeConversation(conversation_uuid, options)(this.fetch, this.basePath);
9271
+ };
9183
9272
  /**
9184
9273
  * Start a new conversation
9185
9274
  * @summary Start a conversation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "3.10.117",
3
+ "version": "3.10.118",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "keywords": [