ultracart_rest_api_v2_typescript 3.10.101 → 3.10.102

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.101
1
+ ## ultracart_rest_api_v2_typescript@3.10.102
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.101 --save
39
+ npm install ultracart_rest_api_v2_typescript@3.10.102 --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.102 | 01/19/2023 | convo - getConversationPermissions added |
57
58
  | 3.10.101 | 01/18/2023 | conversation get dept member list method added |
58
59
  | 3.10.100 | 01/18/2023 | conversation dept members |
59
60
  | 3.10.99 | 01/18/2023 | channel partner ship to pref desc field |
package/api.ts CHANGED
@@ -7144,12 +7144,6 @@ export interface ConversationDepartmentsResponse {
7144
7144
  * @memberof ConversationDepartmentsResponse
7145
7145
  */
7146
7146
  metadata?: ResponseMetadata;
7147
- /**
7148
- *
7149
- * @type {boolean}
7150
- * @memberof ConversationDepartmentsResponse
7151
- */
7152
- read_only?: boolean;
7153
7147
  /**
7154
7148
  * Indicates if API call was successful
7155
7149
  * @type {boolean}
@@ -8097,6 +8091,58 @@ export interface ConversationParticipant {
8097
8091
  unread_messages?: number;
8098
8092
  }
8099
8093
 
8094
+ /**
8095
+ *
8096
+ * @export
8097
+ * @interface ConversationPermissions
8098
+ */
8099
+ export interface ConversationPermissions {
8100
+ /**
8101
+ *
8102
+ * @type {boolean}
8103
+ * @memberof ConversationPermissions
8104
+ */
8105
+ edit_settings?: boolean;
8106
+ }
8107
+
8108
+ /**
8109
+ *
8110
+ * @export
8111
+ * @interface ConversationPermissionsResponse
8112
+ */
8113
+ export interface ConversationPermissionsResponse {
8114
+ /**
8115
+ *
8116
+ * @type {ModelError}
8117
+ * @memberof ConversationPermissionsResponse
8118
+ */
8119
+ error?: ModelError;
8120
+ /**
8121
+ *
8122
+ * @type {ResponseMetadata}
8123
+ * @memberof ConversationPermissionsResponse
8124
+ */
8125
+ metadata?: ResponseMetadata;
8126
+ /**
8127
+ *
8128
+ * @type {ConversationPermissions}
8129
+ * @memberof ConversationPermissionsResponse
8130
+ */
8131
+ permissions?: ConversationPermissions;
8132
+ /**
8133
+ * Indicates if API call was successful
8134
+ * @type {boolean}
8135
+ * @memberof ConversationPermissionsResponse
8136
+ */
8137
+ success?: boolean;
8138
+ /**
8139
+ *
8140
+ * @type {Warning}
8141
+ * @memberof ConversationPermissionsResponse
8142
+ */
8143
+ warning?: Warning;
8144
+ }
8145
+
8100
8146
  /**
8101
8147
  *
8102
8148
  * @export
@@ -44363,6 +44409,52 @@ export const ConversationApiFetchParamCreator = function (configuration?: Config
44363
44409
  options: localVarRequestOptions,
44364
44410
  };
44365
44411
  },
44412
+ /**
44413
+ * Retrieve conversation permissions
44414
+ * @summary Retrieve conversation permissions
44415
+ * @param {*} [options] Override http request option.
44416
+ * @throws {RequiredError}
44417
+ */
44418
+ getConversationPermissions(options: any = {}): FetchArgs {
44419
+ const localVarPath = `/conversation/permissions`;
44420
+ const localVarUrlObj = url.parse(localVarPath, true);
44421
+ const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
44422
+ const localVarHeaderParameter = {} as any;
44423
+ const localVarQueryParameter = {} as any;
44424
+
44425
+ if(configuration && configuration.apiVersion) {
44426
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
44427
+ }
44428
+
44429
+
44430
+
44431
+ // authentication ultraCartOauth required
44432
+ // oauth required
44433
+ if (configuration && configuration.accessToken) {
44434
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
44435
+ ? configuration.accessToken("ultraCartOauth", ["conversation_read"])
44436
+ : configuration.accessToken;
44437
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
44438
+ }
44439
+
44440
+ // authentication ultraCartSimpleApiKey required
44441
+ if (configuration && configuration.apiKey) {
44442
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
44443
+ ? configuration.apiKey("x-ultracart-simple-key")
44444
+ : configuration.apiKey;
44445
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
44446
+ }
44447
+
44448
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
44449
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
44450
+ delete localVarUrlObj.search;
44451
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
44452
+
44453
+ return {
44454
+ url: url.format(localVarUrlObj),
44455
+ options: localVarRequestOptions,
44456
+ };
44457
+ },
44366
44458
  /**
44367
44459
  * Retrieve a conversation webchat queue statuses including agent status and queue entries
44368
44460
  * @summary Retrieve a conversation webchat queue statuses
@@ -45544,6 +45636,26 @@ export const ConversationApiFp = function(configuration?: Configuration) {
45544
45636
  });
45545
45637
  };
45546
45638
  },
45639
+ /**
45640
+ * Retrieve conversation permissions
45641
+ * @summary Retrieve conversation permissions
45642
+ * @param {*} [options] Override http request option.
45643
+ * @throws {RequiredError}
45644
+ */
45645
+ getConversationPermissions(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationPermissionsResponse> {
45646
+ const localVarFetchArgs = ConversationApiFetchParamCreator(configuration).getConversationPermissions(options);
45647
+ return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
45648
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
45649
+
45650
+ if (response.status >= 200 && response.status < 300) {
45651
+ return response.json();
45652
+
45653
+ } else {
45654
+ throw response;
45655
+ }
45656
+ });
45657
+ };
45658
+ },
45547
45659
  /**
45548
45660
  * Retrieve a conversation webchat queue statuses including agent status and queue entries
45549
45661
  * @summary Retrieve a conversation webchat queue statuses
@@ -46023,6 +46135,15 @@ export const ConversationApiFactory = function (configuration?: Configuration, f
46023
46135
  getConversationMultimediaUploadUrl(extension: string, options?: any) {
46024
46136
  return ConversationApiFp(configuration).getConversationMultimediaUploadUrl(extension, options)(fetch, basePath);
46025
46137
  },
46138
+ /**
46139
+ * Retrieve conversation permissions
46140
+ * @summary Retrieve conversation permissions
46141
+ * @param {*} [options] Override http request option.
46142
+ * @throws {RequiredError}
46143
+ */
46144
+ getConversationPermissions(options?: any) {
46145
+ return ConversationApiFp(configuration).getConversationPermissions(options)(fetch, basePath);
46146
+ },
46026
46147
  /**
46027
46148
  * Retrieve a conversation webchat queue statuses including agent status and queue entries
46028
46149
  * @summary Retrieve a conversation webchat queue statuses
@@ -46326,6 +46447,15 @@ export interface ConversationApiInterface {
46326
46447
  */
46327
46448
  getConversationMultimediaUploadUrl(extension: string, options?: any): Promise<ConversationMultimediaUploadUrlResponse>;
46328
46449
 
46450
+ /**
46451
+ * Retrieve conversation permissions
46452
+ * @summary Retrieve conversation permissions
46453
+ * @param {*} [options] Override http request option.
46454
+ * @throws {RequiredError}
46455
+ * @memberof ConversationApiInterface
46456
+ */
46457
+ getConversationPermissions(options?: any): Promise<ConversationPermissionsResponse>;
46458
+
46329
46459
  /**
46330
46460
  * Retrieve a conversation webchat queue statuses including agent status and queue entries
46331
46461
  * @summary Retrieve a conversation webchat queue statuses
@@ -46655,6 +46785,17 @@ export class ConversationApi extends BaseAPI implements ConversationApiInterface
46655
46785
  return ConversationApiFp(this.configuration).getConversationMultimediaUploadUrl(extension, options)(this.fetch, this.basePath);
46656
46786
  }
46657
46787
 
46788
+ /**
46789
+ * Retrieve conversation permissions
46790
+ * @summary Retrieve conversation permissions
46791
+ * @param {*} [options] Override http request option.
46792
+ * @throws {RequiredError}
46793
+ * @memberof ConversationApi
46794
+ */
46795
+ public getConversationPermissions(options?: any) {
46796
+ return ConversationApiFp(this.configuration).getConversationPermissions(options)(this.fetch, this.basePath);
46797
+ }
46798
+
46658
46799
  /**
46659
46800
  * Retrieve a conversation webchat queue statuses including agent status and queue entries
46660
46801
  * @summary Retrieve a conversation webchat queue statuses
package/dist/api.d.ts CHANGED
@@ -6975,12 +6975,6 @@ export interface ConversationDepartmentsResponse {
6975
6975
  * @memberof ConversationDepartmentsResponse
6976
6976
  */
6977
6977
  metadata?: ResponseMetadata;
6978
- /**
6979
- *
6980
- * @type {boolean}
6981
- * @memberof ConversationDepartmentsResponse
6982
- */
6983
- read_only?: boolean;
6984
6978
  /**
6985
6979
  * Indicates if API call was successful
6986
6980
  * @type {boolean}
@@ -7901,6 +7895,56 @@ export interface ConversationParticipant {
7901
7895
  */
7902
7896
  unread_messages?: number;
7903
7897
  }
7898
+ /**
7899
+ *
7900
+ * @export
7901
+ * @interface ConversationPermissions
7902
+ */
7903
+ export interface ConversationPermissions {
7904
+ /**
7905
+ *
7906
+ * @type {boolean}
7907
+ * @memberof ConversationPermissions
7908
+ */
7909
+ edit_settings?: boolean;
7910
+ }
7911
+ /**
7912
+ *
7913
+ * @export
7914
+ * @interface ConversationPermissionsResponse
7915
+ */
7916
+ export interface ConversationPermissionsResponse {
7917
+ /**
7918
+ *
7919
+ * @type {ModelError}
7920
+ * @memberof ConversationPermissionsResponse
7921
+ */
7922
+ error?: ModelError;
7923
+ /**
7924
+ *
7925
+ * @type {ResponseMetadata}
7926
+ * @memberof ConversationPermissionsResponse
7927
+ */
7928
+ metadata?: ResponseMetadata;
7929
+ /**
7930
+ *
7931
+ * @type {ConversationPermissions}
7932
+ * @memberof ConversationPermissionsResponse
7933
+ */
7934
+ permissions?: ConversationPermissions;
7935
+ /**
7936
+ * Indicates if API call was successful
7937
+ * @type {boolean}
7938
+ * @memberof ConversationPermissionsResponse
7939
+ */
7940
+ success?: boolean;
7941
+ /**
7942
+ *
7943
+ * @type {Warning}
7944
+ * @memberof ConversationPermissionsResponse
7945
+ */
7946
+ warning?: Warning;
7947
+ }
7904
7948
  /**
7905
7949
  *
7906
7950
  * @export
@@ -39615,6 +39659,13 @@ export declare const ConversationApiFetchParamCreator: (configuration?: Configur
39615
39659
  * @throws {RequiredError}
39616
39660
  */
39617
39661
  getConversationMultimediaUploadUrl(extension: string, options?: any): FetchArgs;
39662
+ /**
39663
+ * Retrieve conversation permissions
39664
+ * @summary Retrieve conversation permissions
39665
+ * @param {*} [options] Override http request option.
39666
+ * @throws {RequiredError}
39667
+ */
39668
+ getConversationPermissions(options?: any): FetchArgs;
39618
39669
  /**
39619
39670
  * Retrieve a conversation webchat queue statuses including agent status and queue entries
39620
39671
  * @summary Retrieve a conversation webchat queue statuses
@@ -39857,6 +39908,13 @@ export declare const ConversationApiFp: (configuration?: Configuration) => {
39857
39908
  * @throws {RequiredError}
39858
39909
  */
39859
39910
  getConversationMultimediaUploadUrl(extension: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationMultimediaUploadUrlResponse>;
39911
+ /**
39912
+ * Retrieve conversation permissions
39913
+ * @summary Retrieve conversation permissions
39914
+ * @param {*} [options] Override http request option.
39915
+ * @throws {RequiredError}
39916
+ */
39917
+ getConversationPermissions(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationPermissionsResponse>;
39860
39918
  /**
39861
39919
  * Retrieve a conversation webchat queue statuses including agent status and queue entries
39862
39920
  * @summary Retrieve a conversation webchat queue statuses
@@ -40099,6 +40157,13 @@ export declare const ConversationApiFactory: (configuration?: Configuration, fet
40099
40157
  * @throws {RequiredError}
40100
40158
  */
40101
40159
  getConversationMultimediaUploadUrl(extension: string, options?: any): Promise<ConversationMultimediaUploadUrlResponse>;
40160
+ /**
40161
+ * Retrieve conversation permissions
40162
+ * @summary Retrieve conversation permissions
40163
+ * @param {*} [options] Override http request option.
40164
+ * @throws {RequiredError}
40165
+ */
40166
+ getConversationPermissions(options?: any): Promise<ConversationPermissionsResponse>;
40102
40167
  /**
40103
40168
  * Retrieve a conversation webchat queue statuses including agent status and queue entries
40104
40169
  * @summary Retrieve a conversation webchat queue statuses
@@ -40355,6 +40420,14 @@ export interface ConversationApiInterface {
40355
40420
  * @memberof ConversationApiInterface
40356
40421
  */
40357
40422
  getConversationMultimediaUploadUrl(extension: string, options?: any): Promise<ConversationMultimediaUploadUrlResponse>;
40423
+ /**
40424
+ * Retrieve conversation permissions
40425
+ * @summary Retrieve conversation permissions
40426
+ * @param {*} [options] Override http request option.
40427
+ * @throws {RequiredError}
40428
+ * @memberof ConversationApiInterface
40429
+ */
40430
+ getConversationPermissions(options?: any): Promise<ConversationPermissionsResponse>;
40358
40431
  /**
40359
40432
  * Retrieve a conversation webchat queue statuses including agent status and queue entries
40360
40433
  * @summary Retrieve a conversation webchat queue statuses
@@ -40628,6 +40701,14 @@ export declare class ConversationApi extends BaseAPI implements ConversationApiI
40628
40701
  * @memberof ConversationApi
40629
40702
  */
40630
40703
  getConversationMultimediaUploadUrl(extension: string, options?: any): Promise<ConversationMultimediaUploadUrlResponse>;
40704
+ /**
40705
+ * Retrieve conversation permissions
40706
+ * @summary Retrieve conversation permissions
40707
+ * @param {*} [options] Override http request option.
40708
+ * @throws {RequiredError}
40709
+ * @memberof ConversationApi
40710
+ */
40711
+ getConversationPermissions(options?: any): Promise<ConversationPermissionsResponse>;
40631
40712
  /**
40632
40713
  * Retrieve a conversation webchat queue statuses including agent status and queue entries
40633
40714
  * @summary Retrieve a conversation webchat queue statuses
package/dist/api.js CHANGED
@@ -6729,6 +6729,46 @@ var ConversationApiFetchParamCreator = function (configuration) {
6729
6729
  options: localVarRequestOptions,
6730
6730
  };
6731
6731
  },
6732
+ /**
6733
+ * Retrieve conversation permissions
6734
+ * @summary Retrieve conversation permissions
6735
+ * @param {*} [options] Override http request option.
6736
+ * @throws {RequiredError}
6737
+ */
6738
+ getConversationPermissions: function (options) {
6739
+ if (options === void 0) { options = {}; }
6740
+ var localVarPath = "/conversation/permissions";
6741
+ var localVarUrlObj = url.parse(localVarPath, true);
6742
+ var localVarRequestOptions = Object.assign({ method: 'GET' }, options);
6743
+ var localVarHeaderParameter = {};
6744
+ var localVarQueryParameter = {};
6745
+ if (configuration && configuration.apiVersion) {
6746
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
6747
+ }
6748
+ // authentication ultraCartOauth required
6749
+ // oauth required
6750
+ if (configuration && configuration.accessToken) {
6751
+ var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
6752
+ ? configuration.accessToken("ultraCartOauth", ["conversation_read"])
6753
+ : configuration.accessToken;
6754
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
6755
+ }
6756
+ // authentication ultraCartSimpleApiKey required
6757
+ if (configuration && configuration.apiKey) {
6758
+ var localVarApiKeyValue = typeof configuration.apiKey === 'function'
6759
+ ? configuration.apiKey("x-ultracart-simple-key")
6760
+ : configuration.apiKey;
6761
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
6762
+ }
6763
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
6764
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
6765
+ delete localVarUrlObj.search;
6766
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
6767
+ return {
6768
+ url: url.format(localVarUrlObj),
6769
+ options: localVarRequestOptions,
6770
+ };
6771
+ },
6732
6772
  /**
6733
6773
  * Retrieve a conversation webchat queue statuses including agent status and queue entries
6734
6774
  * @summary Retrieve a conversation webchat queue statuses
@@ -7811,6 +7851,27 @@ var ConversationApiFp = function (configuration) {
7811
7851
  });
7812
7852
  };
7813
7853
  },
7854
+ /**
7855
+ * Retrieve conversation permissions
7856
+ * @summary Retrieve conversation permissions
7857
+ * @param {*} [options] Override http request option.
7858
+ * @throws {RequiredError}
7859
+ */
7860
+ getConversationPermissions: function (options) {
7861
+ var localVarFetchArgs = (0, exports.ConversationApiFetchParamCreator)(configuration).getConversationPermissions(options);
7862
+ return function (fetch, basePath) {
7863
+ if (fetch === void 0) { fetch = portableFetch; }
7864
+ if (basePath === void 0) { basePath = BASE_PATH; }
7865
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
7866
+ if (response.status >= 200 && response.status < 300) {
7867
+ return response.json();
7868
+ }
7869
+ else {
7870
+ throw response;
7871
+ }
7872
+ });
7873
+ };
7874
+ },
7814
7875
  /**
7815
7876
  * Retrieve a conversation webchat queue statuses including agent status and queue entries
7816
7877
  * @summary Retrieve a conversation webchat queue statuses
@@ -8306,6 +8367,15 @@ var ConversationApiFactory = function (configuration, fetch, basePath) {
8306
8367
  getConversationMultimediaUploadUrl: function (extension, options) {
8307
8368
  return (0, exports.ConversationApiFp)(configuration).getConversationMultimediaUploadUrl(extension, options)(fetch, basePath);
8308
8369
  },
8370
+ /**
8371
+ * Retrieve conversation permissions
8372
+ * @summary Retrieve conversation permissions
8373
+ * @param {*} [options] Override http request option.
8374
+ * @throws {RequiredError}
8375
+ */
8376
+ getConversationPermissions: function (options) {
8377
+ return (0, exports.ConversationApiFp)(configuration).getConversationPermissions(options)(fetch, basePath);
8378
+ },
8309
8379
  /**
8310
8380
  * Retrieve a conversation webchat queue statuses including agent status and queue entries
8311
8381
  * @summary Retrieve a conversation webchat queue statuses
@@ -8627,6 +8697,16 @@ var ConversationApi = /** @class */ (function (_super) {
8627
8697
  ConversationApi.prototype.getConversationMultimediaUploadUrl = function (extension, options) {
8628
8698
  return (0, exports.ConversationApiFp)(this.configuration).getConversationMultimediaUploadUrl(extension, options)(this.fetch, this.basePath);
8629
8699
  };
8700
+ /**
8701
+ * Retrieve conversation permissions
8702
+ * @summary Retrieve conversation permissions
8703
+ * @param {*} [options] Override http request option.
8704
+ * @throws {RequiredError}
8705
+ * @memberof ConversationApi
8706
+ */
8707
+ ConversationApi.prototype.getConversationPermissions = function (options) {
8708
+ return (0, exports.ConversationApiFp)(this.configuration).getConversationPermissions(options)(this.fetch, this.basePath);
8709
+ };
8630
8710
  /**
8631
8711
  * Retrieve a conversation webchat queue statuses including agent status and queue entries
8632
8712
  * @summary Retrieve a conversation webchat queue statuses
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "3.10.101",
3
+ "version": "3.10.102",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "keywords": [