ultracart_rest_api_v2_typescript 3.10.187 → 3.10.189

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.187
1
+ ## ultracart_rest_api_v2_typescript@3.10.189
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.187 --save
39
+ npm install ultracart_rest_api_v2_typescript@3.10.189 --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.189 | 03/25/2024 | added sales_rep_code to Channel partner order |
58
+ | 3.10.188 | 03/19/2024 | workflow task - method to obtain open task count |
57
59
  | 3.10.187 | 03/19/2024 | workflow task - addl status values, expiration_dts, and system task type |
58
60
  | 3.10.186 | 03/15/2024 | workflow - getWorkflowAgentWebsocketAuthorization method added |
59
61
  | 3.10.185 | 03/08/2024 | added getWorkflowTaskTags method |
package/api.ts CHANGED
@@ -5853,6 +5853,12 @@ export interface ChannelPartnerOrder {
5853
5853
  * @memberof ChannelPartnerOrder
5854
5854
  */
5855
5855
  rotating_transaction_gateway_code?: string;
5856
+ /**
5857
+ * Sales rep code
5858
+ * @type {string}
5859
+ * @memberof ChannelPartnerOrder
5860
+ */
5861
+ sales_rep_code?: string;
5856
5862
  /**
5857
5863
  * Screen branding theme code
5858
5864
  * @type {string}
@@ -43530,6 +43536,44 @@ export interface WorkflowTaskHistory {
43530
43536
  user?: WorkflowUser;
43531
43537
  }
43532
43538
 
43539
+ /**
43540
+ *
43541
+ * @export
43542
+ * @interface WorkflowTaskOpenCountResponse
43543
+ */
43544
+ export interface WorkflowTaskOpenCountResponse {
43545
+ /**
43546
+ *
43547
+ * @type {ModelError}
43548
+ * @memberof WorkflowTaskOpenCountResponse
43549
+ */
43550
+ error?: ModelError;
43551
+ /**
43552
+ *
43553
+ * @type {ResponseMetadata}
43554
+ * @memberof WorkflowTaskOpenCountResponse
43555
+ */
43556
+ metadata?: ResponseMetadata;
43557
+ /**
43558
+ * Open Task Count
43559
+ * @type {number}
43560
+ * @memberof WorkflowTaskOpenCountResponse
43561
+ */
43562
+ open_count?: number;
43563
+ /**
43564
+ * Indicates if API call was successful
43565
+ * @type {boolean}
43566
+ * @memberof WorkflowTaskOpenCountResponse
43567
+ */
43568
+ success?: boolean;
43569
+ /**
43570
+ *
43571
+ * @type {Warning}
43572
+ * @memberof WorkflowTaskOpenCountResponse
43573
+ */
43574
+ warning?: Warning;
43575
+ }
43576
+
43533
43577
  /**
43534
43578
  *
43535
43579
  * @export
@@ -43885,6 +43929,12 @@ export interface WorkflowUsersResponse {
43885
43929
  * @memberof WorkflowUsersResponse
43886
43930
  */
43887
43931
  metadata?: ResponseMetadata;
43932
+ /**
43933
+ * User ID of myself
43934
+ * @type {number}
43935
+ * @memberof WorkflowUsersResponse
43936
+ */
43937
+ my_user_id?: number;
43888
43938
  /**
43889
43939
  * Indicates if API call was successful
43890
43940
  * @type {boolean}
@@ -101142,6 +101192,52 @@ export const WorkflowApiFetchParamCreator = function (configuration?: Configurat
101142
101192
 
101143
101193
 
101144
101194
 
101195
+ // authentication ultraCartOauth required
101196
+ // oauth required
101197
+ if (configuration && configuration.accessToken) {
101198
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
101199
+ ? configuration.accessToken("ultraCartOauth", ["workflow_read"])
101200
+ : configuration.accessToken;
101201
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
101202
+ }
101203
+
101204
+ // authentication ultraCartSimpleApiKey required
101205
+ if (configuration && configuration.apiKey) {
101206
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
101207
+ ? configuration.apiKey("x-ultracart-simple-key")
101208
+ : configuration.apiKey;
101209
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
101210
+ }
101211
+
101212
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
101213
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
101214
+ delete localVarUrlObj.search;
101215
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
101216
+
101217
+ return {
101218
+ url: url.format(localVarUrlObj),
101219
+ options: localVarRequestOptions,
101220
+ };
101221
+ },
101222
+ /**
101223
+ * Retrieve workflow task open count
101224
+ * @summary Retrieve workflow task open count
101225
+ * @param {*} [options] Override http request option.
101226
+ * @throws {RequiredError}
101227
+ */
101228
+ getWorkflowTaskOpenCount(options: any = {}): FetchArgs {
101229
+ const localVarPath = `/workflow/tasks/open_count`;
101230
+ const localVarUrlObj = url.parse(localVarPath, true);
101231
+ const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
101232
+ const localVarHeaderParameter = {} as any;
101233
+ const localVarQueryParameter = {} as any;
101234
+
101235
+ if(configuration && configuration.apiVersion) {
101236
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
101237
+ }
101238
+
101239
+
101240
+
101145
101241
  // authentication ultraCartOauth required
101146
101242
  // oauth required
101147
101243
  if (configuration && configuration.accessToken) {
@@ -101558,6 +101654,26 @@ export const WorkflowApiFp = function(configuration?: Configuration) {
101558
101654
  });
101559
101655
  };
101560
101656
  },
101657
+ /**
101658
+ * Retrieve workflow task open count
101659
+ * @summary Retrieve workflow task open count
101660
+ * @param {*} [options] Override http request option.
101661
+ * @throws {RequiredError}
101662
+ */
101663
+ getWorkflowTaskOpenCount(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<WorkflowTaskOpenCountResponse> {
101664
+ const localVarFetchArgs = WorkflowApiFetchParamCreator(configuration).getWorkflowTaskOpenCount(options);
101665
+ return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
101666
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
101667
+
101668
+ if (response.status >= 200 && response.status < 300) {
101669
+ return response.json();
101670
+
101671
+ } else {
101672
+ throw response;
101673
+ }
101674
+ });
101675
+ };
101676
+ },
101561
101677
  /**
101562
101678
  * Retrieves a unique list of all the existing workflow task tags.
101563
101679
  * @summary Get a list of existing workflow task tags
@@ -101725,6 +101841,15 @@ export const WorkflowApiFactory = function (configuration?: Configuration, fetch
101725
101841
  getWorkflowTaskByObjectType(object_type: string, object_id: string, options?: any) {
101726
101842
  return WorkflowApiFp(configuration).getWorkflowTaskByObjectType(object_type, object_id, options)(fetch, basePath);
101727
101843
  },
101844
+ /**
101845
+ * Retrieve workflow task open count
101846
+ * @summary Retrieve workflow task open count
101847
+ * @param {*} [options] Override http request option.
101848
+ * @throws {RequiredError}
101849
+ */
101850
+ getWorkflowTaskOpenCount(options?: any) {
101851
+ return WorkflowApiFp(configuration).getWorkflowTaskOpenCount(options)(fetch, basePath);
101852
+ },
101728
101853
  /**
101729
101854
  * Retrieves a unique list of all the existing workflow task tags.
101730
101855
  * @summary Get a list of existing workflow task tags
@@ -101848,6 +101973,15 @@ export interface WorkflowApiInterface {
101848
101973
  */
101849
101974
  getWorkflowTaskByObjectType(object_type: string, object_id: string, options?: any): Promise<WorkflowTasksResponse>;
101850
101975
 
101976
+ /**
101977
+ * Retrieve workflow task open count
101978
+ * @summary Retrieve workflow task open count
101979
+ * @param {*} [options] Override http request option.
101980
+ * @throws {RequiredError}
101981
+ * @memberof WorkflowApiInterface
101982
+ */
101983
+ getWorkflowTaskOpenCount(options?: any): Promise<WorkflowTaskOpenCountResponse>;
101984
+
101851
101985
  /**
101852
101986
  * Retrieves a unique list of all the existing workflow task tags.
101853
101987
  * @summary Get a list of existing workflow task tags
@@ -101985,6 +102119,17 @@ export class WorkflowApi extends BaseAPI implements WorkflowApiInterface {
101985
102119
  return WorkflowApiFp(this.configuration).getWorkflowTaskByObjectType(object_type, object_id, options)(this.fetch, this.basePath);
101986
102120
  }
101987
102121
 
102122
+ /**
102123
+ * Retrieve workflow task open count
102124
+ * @summary Retrieve workflow task open count
102125
+ * @param {*} [options] Override http request option.
102126
+ * @throws {RequiredError}
102127
+ * @memberof WorkflowApi
102128
+ */
102129
+ public getWorkflowTaskOpenCount(options?: any) {
102130
+ return WorkflowApiFp(this.configuration).getWorkflowTaskOpenCount(options)(this.fetch, this.basePath);
102131
+ }
102132
+
101988
102133
  /**
101989
102134
  * Retrieves a unique list of all the existing workflow task tags.
101990
102135
  * @summary Get a list of existing workflow task tags
package/dist/api.d.ts CHANGED
@@ -5719,6 +5719,12 @@ export interface ChannelPartnerOrder {
5719
5719
  * @memberof ChannelPartnerOrder
5720
5720
  */
5721
5721
  rotating_transaction_gateway_code?: string;
5722
+ /**
5723
+ * Sales rep code
5724
+ * @type {string}
5725
+ * @memberof ChannelPartnerOrder
5726
+ */
5727
+ sales_rep_code?: string;
5722
5728
  /**
5723
5729
  * Screen branding theme code
5724
5730
  * @type {string}
@@ -42610,6 +42616,43 @@ export interface WorkflowTaskHistory {
42610
42616
  */
42611
42617
  user?: WorkflowUser;
42612
42618
  }
42619
+ /**
42620
+ *
42621
+ * @export
42622
+ * @interface WorkflowTaskOpenCountResponse
42623
+ */
42624
+ export interface WorkflowTaskOpenCountResponse {
42625
+ /**
42626
+ *
42627
+ * @type {ModelError}
42628
+ * @memberof WorkflowTaskOpenCountResponse
42629
+ */
42630
+ error?: ModelError;
42631
+ /**
42632
+ *
42633
+ * @type {ResponseMetadata}
42634
+ * @memberof WorkflowTaskOpenCountResponse
42635
+ */
42636
+ metadata?: ResponseMetadata;
42637
+ /**
42638
+ * Open Task Count
42639
+ * @type {number}
42640
+ * @memberof WorkflowTaskOpenCountResponse
42641
+ */
42642
+ open_count?: number;
42643
+ /**
42644
+ * Indicates if API call was successful
42645
+ * @type {boolean}
42646
+ * @memberof WorkflowTaskOpenCountResponse
42647
+ */
42648
+ success?: boolean;
42649
+ /**
42650
+ *
42651
+ * @type {Warning}
42652
+ * @memberof WorkflowTaskOpenCountResponse
42653
+ */
42654
+ warning?: Warning;
42655
+ }
42613
42656
  /**
42614
42657
  *
42615
42658
  * @export
@@ -42958,6 +43001,12 @@ export interface WorkflowUsersResponse {
42958
43001
  * @memberof WorkflowUsersResponse
42959
43002
  */
42960
43003
  metadata?: ResponseMetadata;
43004
+ /**
43005
+ * User ID of myself
43006
+ * @type {number}
43007
+ * @memberof WorkflowUsersResponse
43008
+ */
43009
+ my_user_id?: number;
42961
43010
  /**
42962
43011
  * Indicates if API call was successful
42963
43012
  * @type {boolean}
@@ -65891,6 +65940,13 @@ export declare const WorkflowApiFetchParamCreator: (configuration?: Configuratio
65891
65940
  * @throws {RequiredError}
65892
65941
  */
65893
65942
  getWorkflowTaskByObjectType(object_type: string, object_id: string, options?: any): FetchArgs;
65943
+ /**
65944
+ * Retrieve workflow task open count
65945
+ * @summary Retrieve workflow task open count
65946
+ * @param {*} [options] Override http request option.
65947
+ * @throws {RequiredError}
65948
+ */
65949
+ getWorkflowTaskOpenCount(options?: any): FetchArgs;
65894
65950
  /**
65895
65951
  * Retrieves a unique list of all the existing workflow task tags.
65896
65952
  * @summary Get a list of existing workflow task tags
@@ -65989,6 +66045,13 @@ export declare const WorkflowApiFp: (configuration?: Configuration) => {
65989
66045
  * @throws {RequiredError}
65990
66046
  */
65991
66047
  getWorkflowTaskByObjectType(object_type: string, object_id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<WorkflowTasksResponse>;
66048
+ /**
66049
+ * Retrieve workflow task open count
66050
+ * @summary Retrieve workflow task open count
66051
+ * @param {*} [options] Override http request option.
66052
+ * @throws {RequiredError}
66053
+ */
66054
+ getWorkflowTaskOpenCount(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<WorkflowTaskOpenCountResponse>;
65992
66055
  /**
65993
66056
  * Retrieves a unique list of all the existing workflow task tags.
65994
66057
  * @summary Get a list of existing workflow task tags
@@ -66087,6 +66150,13 @@ export declare const WorkflowApiFactory: (configuration?: Configuration, fetch?:
66087
66150
  * @throws {RequiredError}
66088
66151
  */
66089
66152
  getWorkflowTaskByObjectType(object_type: string, object_id: string, options?: any): Promise<WorkflowTasksResponse>;
66153
+ /**
66154
+ * Retrieve workflow task open count
66155
+ * @summary Retrieve workflow task open count
66156
+ * @param {*} [options] Override http request option.
66157
+ * @throws {RequiredError}
66158
+ */
66159
+ getWorkflowTaskOpenCount(options?: any): Promise<WorkflowTaskOpenCountResponse>;
66090
66160
  /**
66091
66161
  * Retrieves a unique list of all the existing workflow task tags.
66092
66162
  * @summary Get a list of existing workflow task tags
@@ -66193,6 +66263,14 @@ export interface WorkflowApiInterface {
66193
66263
  * @memberof WorkflowApiInterface
66194
66264
  */
66195
66265
  getWorkflowTaskByObjectType(object_type: string, object_id: string, options?: any): Promise<WorkflowTasksResponse>;
66266
+ /**
66267
+ * Retrieve workflow task open count
66268
+ * @summary Retrieve workflow task open count
66269
+ * @param {*} [options] Override http request option.
66270
+ * @throws {RequiredError}
66271
+ * @memberof WorkflowApiInterface
66272
+ */
66273
+ getWorkflowTaskOpenCount(options?: any): Promise<WorkflowTaskOpenCountResponse>;
66196
66274
  /**
66197
66275
  * Retrieves a unique list of all the existing workflow task tags.
66198
66276
  * @summary Get a list of existing workflow task tags
@@ -66304,6 +66382,14 @@ export declare class WorkflowApi extends BaseAPI implements WorkflowApiInterface
66304
66382
  * @memberof WorkflowApi
66305
66383
  */
66306
66384
  getWorkflowTaskByObjectType(object_type: string, object_id: string, options?: any): Promise<WorkflowTasksResponse>;
66385
+ /**
66386
+ * Retrieve workflow task open count
66387
+ * @summary Retrieve workflow task open count
66388
+ * @param {*} [options] Override http request option.
66389
+ * @throws {RequiredError}
66390
+ * @memberof WorkflowApi
66391
+ */
66392
+ getWorkflowTaskOpenCount(options?: any): Promise<WorkflowTaskOpenCountResponse>;
66307
66393
  /**
66308
66394
  * Retrieves a unique list of all the existing workflow task tags.
66309
66395
  * @summary Get a list of existing workflow task tags
package/dist/api.js CHANGED
@@ -50112,6 +50112,46 @@ var WorkflowApiFetchParamCreator = function (configuration) {
50112
50112
  options: localVarRequestOptions,
50113
50113
  };
50114
50114
  },
50115
+ /**
50116
+ * Retrieve workflow task open count
50117
+ * @summary Retrieve workflow task open count
50118
+ * @param {*} [options] Override http request option.
50119
+ * @throws {RequiredError}
50120
+ */
50121
+ getWorkflowTaskOpenCount: function (options) {
50122
+ if (options === void 0) { options = {}; }
50123
+ var localVarPath = "/workflow/tasks/open_count";
50124
+ var localVarUrlObj = url.parse(localVarPath, true);
50125
+ var localVarRequestOptions = Object.assign({ method: 'GET' }, options);
50126
+ var localVarHeaderParameter = {};
50127
+ var localVarQueryParameter = {};
50128
+ if (configuration && configuration.apiVersion) {
50129
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
50130
+ }
50131
+ // authentication ultraCartOauth required
50132
+ // oauth required
50133
+ if (configuration && configuration.accessToken) {
50134
+ var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
50135
+ ? configuration.accessToken("ultraCartOauth", ["workflow_read"])
50136
+ : configuration.accessToken;
50137
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
50138
+ }
50139
+ // authentication ultraCartSimpleApiKey required
50140
+ if (configuration && configuration.apiKey) {
50141
+ var localVarApiKeyValue = typeof configuration.apiKey === 'function'
50142
+ ? configuration.apiKey("x-ultracart-simple-key")
50143
+ : configuration.apiKey;
50144
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
50145
+ }
50146
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
50147
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
50148
+ delete localVarUrlObj.search;
50149
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
50150
+ return {
50151
+ url: url.format(localVarUrlObj),
50152
+ options: localVarRequestOptions,
50153
+ };
50154
+ },
50115
50155
  /**
50116
50156
  * Retrieves a unique list of all the existing workflow task tags.
50117
50157
  * @summary Get a list of existing workflow task tags
@@ -50478,6 +50518,27 @@ var WorkflowApiFp = function (configuration) {
50478
50518
  });
50479
50519
  };
50480
50520
  },
50521
+ /**
50522
+ * Retrieve workflow task open count
50523
+ * @summary Retrieve workflow task open count
50524
+ * @param {*} [options] Override http request option.
50525
+ * @throws {RequiredError}
50526
+ */
50527
+ getWorkflowTaskOpenCount: function (options) {
50528
+ var localVarFetchArgs = (0, exports.WorkflowApiFetchParamCreator)(configuration).getWorkflowTaskOpenCount(options);
50529
+ return function (fetch, basePath) {
50530
+ if (fetch === void 0) { fetch = portableFetch; }
50531
+ if (basePath === void 0) { basePath = BASE_PATH; }
50532
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
50533
+ if (response.status >= 200 && response.status < 300) {
50534
+ return response.json();
50535
+ }
50536
+ else {
50537
+ throw response;
50538
+ }
50539
+ });
50540
+ };
50541
+ },
50481
50542
  /**
50482
50543
  * Retrieves a unique list of all the existing workflow task tags.
50483
50544
  * @summary Get a list of existing workflow task tags
@@ -50649,6 +50710,15 @@ var WorkflowApiFactory = function (configuration, fetch, basePath) {
50649
50710
  getWorkflowTaskByObjectType: function (object_type, object_id, options) {
50650
50711
  return (0, exports.WorkflowApiFp)(configuration).getWorkflowTaskByObjectType(object_type, object_id, options)(fetch, basePath);
50651
50712
  },
50713
+ /**
50714
+ * Retrieve workflow task open count
50715
+ * @summary Retrieve workflow task open count
50716
+ * @param {*} [options] Override http request option.
50717
+ * @throws {RequiredError}
50718
+ */
50719
+ getWorkflowTaskOpenCount: function (options) {
50720
+ return (0, exports.WorkflowApiFp)(configuration).getWorkflowTaskOpenCount(options)(fetch, basePath);
50721
+ },
50652
50722
  /**
50653
50723
  * Retrieves a unique list of all the existing workflow task tags.
50654
50724
  * @summary Get a list of existing workflow task tags
@@ -50784,6 +50854,16 @@ var WorkflowApi = /** @class */ (function (_super) {
50784
50854
  WorkflowApi.prototype.getWorkflowTaskByObjectType = function (object_type, object_id, options) {
50785
50855
  return (0, exports.WorkflowApiFp)(this.configuration).getWorkflowTaskByObjectType(object_type, object_id, options)(this.fetch, this.basePath);
50786
50856
  };
50857
+ /**
50858
+ * Retrieve workflow task open count
50859
+ * @summary Retrieve workflow task open count
50860
+ * @param {*} [options] Override http request option.
50861
+ * @throws {RequiredError}
50862
+ * @memberof WorkflowApi
50863
+ */
50864
+ WorkflowApi.prototype.getWorkflowTaskOpenCount = function (options) {
50865
+ return (0, exports.WorkflowApiFp)(this.configuration).getWorkflowTaskOpenCount(options)(this.fetch, this.basePath);
50866
+ };
50787
50867
  /**
50788
50868
  * Retrieves a unique list of all the existing workflow task tags.
50789
50869
  * @summary Get a list of existing workflow task tags
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "3.10.187",
3
+ "version": "3.10.189",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "keywords": [