ultracart_rest_api_v2_typescript 3.10.187 → 3.10.188

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.188
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.188 --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.188 | 03/19/2024 | workflow task - method to obtain open task count |
57
58
  | 3.10.187 | 03/19/2024 | workflow task - addl status values, expiration_dts, and system task type |
58
59
  | 3.10.186 | 03/15/2024 | workflow - getWorkflowAgentWebsocketAuthorization method added |
59
60
  | 3.10.185 | 03/08/2024 | added getWorkflowTaskTags method |
package/api.ts CHANGED
@@ -43530,6 +43530,44 @@ export interface WorkflowTaskHistory {
43530
43530
  user?: WorkflowUser;
43531
43531
  }
43532
43532
 
43533
+ /**
43534
+ *
43535
+ * @export
43536
+ * @interface WorkflowTaskOpenCountResponse
43537
+ */
43538
+ export interface WorkflowTaskOpenCountResponse {
43539
+ /**
43540
+ *
43541
+ * @type {ModelError}
43542
+ * @memberof WorkflowTaskOpenCountResponse
43543
+ */
43544
+ error?: ModelError;
43545
+ /**
43546
+ *
43547
+ * @type {ResponseMetadata}
43548
+ * @memberof WorkflowTaskOpenCountResponse
43549
+ */
43550
+ metadata?: ResponseMetadata;
43551
+ /**
43552
+ * Open Task Count
43553
+ * @type {number}
43554
+ * @memberof WorkflowTaskOpenCountResponse
43555
+ */
43556
+ open_count?: number;
43557
+ /**
43558
+ * Indicates if API call was successful
43559
+ * @type {boolean}
43560
+ * @memberof WorkflowTaskOpenCountResponse
43561
+ */
43562
+ success?: boolean;
43563
+ /**
43564
+ *
43565
+ * @type {Warning}
43566
+ * @memberof WorkflowTaskOpenCountResponse
43567
+ */
43568
+ warning?: Warning;
43569
+ }
43570
+
43533
43571
  /**
43534
43572
  *
43535
43573
  * @export
@@ -43885,6 +43923,12 @@ export interface WorkflowUsersResponse {
43885
43923
  * @memberof WorkflowUsersResponse
43886
43924
  */
43887
43925
  metadata?: ResponseMetadata;
43926
+ /**
43927
+ * User ID of myself
43928
+ * @type {number}
43929
+ * @memberof WorkflowUsersResponse
43930
+ */
43931
+ my_user_id?: number;
43888
43932
  /**
43889
43933
  * Indicates if API call was successful
43890
43934
  * @type {boolean}
@@ -101142,6 +101186,52 @@ export const WorkflowApiFetchParamCreator = function (configuration?: Configurat
101142
101186
 
101143
101187
 
101144
101188
 
101189
+ // authentication ultraCartOauth required
101190
+ // oauth required
101191
+ if (configuration && configuration.accessToken) {
101192
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
101193
+ ? configuration.accessToken("ultraCartOauth", ["workflow_read"])
101194
+ : configuration.accessToken;
101195
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
101196
+ }
101197
+
101198
+ // authentication ultraCartSimpleApiKey required
101199
+ if (configuration && configuration.apiKey) {
101200
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
101201
+ ? configuration.apiKey("x-ultracart-simple-key")
101202
+ : configuration.apiKey;
101203
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
101204
+ }
101205
+
101206
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
101207
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
101208
+ delete localVarUrlObj.search;
101209
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
101210
+
101211
+ return {
101212
+ url: url.format(localVarUrlObj),
101213
+ options: localVarRequestOptions,
101214
+ };
101215
+ },
101216
+ /**
101217
+ * Retrieve workflow task open count
101218
+ * @summary Retrieve workflow task open count
101219
+ * @param {*} [options] Override http request option.
101220
+ * @throws {RequiredError}
101221
+ */
101222
+ getWorkflowTaskOpenCount(options: any = {}): FetchArgs {
101223
+ const localVarPath = `/workflow/tasks/open_count`;
101224
+ const localVarUrlObj = url.parse(localVarPath, true);
101225
+ const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
101226
+ const localVarHeaderParameter = {} as any;
101227
+ const localVarQueryParameter = {} as any;
101228
+
101229
+ if(configuration && configuration.apiVersion) {
101230
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
101231
+ }
101232
+
101233
+
101234
+
101145
101235
  // authentication ultraCartOauth required
101146
101236
  // oauth required
101147
101237
  if (configuration && configuration.accessToken) {
@@ -101558,6 +101648,26 @@ export const WorkflowApiFp = function(configuration?: Configuration) {
101558
101648
  });
101559
101649
  };
101560
101650
  },
101651
+ /**
101652
+ * Retrieve workflow task open count
101653
+ * @summary Retrieve workflow task open count
101654
+ * @param {*} [options] Override http request option.
101655
+ * @throws {RequiredError}
101656
+ */
101657
+ getWorkflowTaskOpenCount(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<WorkflowTaskOpenCountResponse> {
101658
+ const localVarFetchArgs = WorkflowApiFetchParamCreator(configuration).getWorkflowTaskOpenCount(options);
101659
+ return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
101660
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
101661
+
101662
+ if (response.status >= 200 && response.status < 300) {
101663
+ return response.json();
101664
+
101665
+ } else {
101666
+ throw response;
101667
+ }
101668
+ });
101669
+ };
101670
+ },
101561
101671
  /**
101562
101672
  * Retrieves a unique list of all the existing workflow task tags.
101563
101673
  * @summary Get a list of existing workflow task tags
@@ -101725,6 +101835,15 @@ export const WorkflowApiFactory = function (configuration?: Configuration, fetch
101725
101835
  getWorkflowTaskByObjectType(object_type: string, object_id: string, options?: any) {
101726
101836
  return WorkflowApiFp(configuration).getWorkflowTaskByObjectType(object_type, object_id, options)(fetch, basePath);
101727
101837
  },
101838
+ /**
101839
+ * Retrieve workflow task open count
101840
+ * @summary Retrieve workflow task open count
101841
+ * @param {*} [options] Override http request option.
101842
+ * @throws {RequiredError}
101843
+ */
101844
+ getWorkflowTaskOpenCount(options?: any) {
101845
+ return WorkflowApiFp(configuration).getWorkflowTaskOpenCount(options)(fetch, basePath);
101846
+ },
101728
101847
  /**
101729
101848
  * Retrieves a unique list of all the existing workflow task tags.
101730
101849
  * @summary Get a list of existing workflow task tags
@@ -101848,6 +101967,15 @@ export interface WorkflowApiInterface {
101848
101967
  */
101849
101968
  getWorkflowTaskByObjectType(object_type: string, object_id: string, options?: any): Promise<WorkflowTasksResponse>;
101850
101969
 
101970
+ /**
101971
+ * Retrieve workflow task open count
101972
+ * @summary Retrieve workflow task open count
101973
+ * @param {*} [options] Override http request option.
101974
+ * @throws {RequiredError}
101975
+ * @memberof WorkflowApiInterface
101976
+ */
101977
+ getWorkflowTaskOpenCount(options?: any): Promise<WorkflowTaskOpenCountResponse>;
101978
+
101851
101979
  /**
101852
101980
  * Retrieves a unique list of all the existing workflow task tags.
101853
101981
  * @summary Get a list of existing workflow task tags
@@ -101985,6 +102113,17 @@ export class WorkflowApi extends BaseAPI implements WorkflowApiInterface {
101985
102113
  return WorkflowApiFp(this.configuration).getWorkflowTaskByObjectType(object_type, object_id, options)(this.fetch, this.basePath);
101986
102114
  }
101987
102115
 
102116
+ /**
102117
+ * Retrieve workflow task open count
102118
+ * @summary Retrieve workflow task open count
102119
+ * @param {*} [options] Override http request option.
102120
+ * @throws {RequiredError}
102121
+ * @memberof WorkflowApi
102122
+ */
102123
+ public getWorkflowTaskOpenCount(options?: any) {
102124
+ return WorkflowApiFp(this.configuration).getWorkflowTaskOpenCount(options)(this.fetch, this.basePath);
102125
+ }
102126
+
101988
102127
  /**
101989
102128
  * Retrieves a unique list of all the existing workflow task tags.
101990
102129
  * @summary Get a list of existing workflow task tags
package/dist/api.d.ts CHANGED
@@ -42610,6 +42610,43 @@ export interface WorkflowTaskHistory {
42610
42610
  */
42611
42611
  user?: WorkflowUser;
42612
42612
  }
42613
+ /**
42614
+ *
42615
+ * @export
42616
+ * @interface WorkflowTaskOpenCountResponse
42617
+ */
42618
+ export interface WorkflowTaskOpenCountResponse {
42619
+ /**
42620
+ *
42621
+ * @type {ModelError}
42622
+ * @memberof WorkflowTaskOpenCountResponse
42623
+ */
42624
+ error?: ModelError;
42625
+ /**
42626
+ *
42627
+ * @type {ResponseMetadata}
42628
+ * @memberof WorkflowTaskOpenCountResponse
42629
+ */
42630
+ metadata?: ResponseMetadata;
42631
+ /**
42632
+ * Open Task Count
42633
+ * @type {number}
42634
+ * @memberof WorkflowTaskOpenCountResponse
42635
+ */
42636
+ open_count?: number;
42637
+ /**
42638
+ * Indicates if API call was successful
42639
+ * @type {boolean}
42640
+ * @memberof WorkflowTaskOpenCountResponse
42641
+ */
42642
+ success?: boolean;
42643
+ /**
42644
+ *
42645
+ * @type {Warning}
42646
+ * @memberof WorkflowTaskOpenCountResponse
42647
+ */
42648
+ warning?: Warning;
42649
+ }
42613
42650
  /**
42614
42651
  *
42615
42652
  * @export
@@ -42958,6 +42995,12 @@ export interface WorkflowUsersResponse {
42958
42995
  * @memberof WorkflowUsersResponse
42959
42996
  */
42960
42997
  metadata?: ResponseMetadata;
42998
+ /**
42999
+ * User ID of myself
43000
+ * @type {number}
43001
+ * @memberof WorkflowUsersResponse
43002
+ */
43003
+ my_user_id?: number;
42961
43004
  /**
42962
43005
  * Indicates if API call was successful
42963
43006
  * @type {boolean}
@@ -65891,6 +65934,13 @@ export declare const WorkflowApiFetchParamCreator: (configuration?: Configuratio
65891
65934
  * @throws {RequiredError}
65892
65935
  */
65893
65936
  getWorkflowTaskByObjectType(object_type: string, object_id: string, options?: any): FetchArgs;
65937
+ /**
65938
+ * Retrieve workflow task open count
65939
+ * @summary Retrieve workflow task open count
65940
+ * @param {*} [options] Override http request option.
65941
+ * @throws {RequiredError}
65942
+ */
65943
+ getWorkflowTaskOpenCount(options?: any): FetchArgs;
65894
65944
  /**
65895
65945
  * Retrieves a unique list of all the existing workflow task tags.
65896
65946
  * @summary Get a list of existing workflow task tags
@@ -65989,6 +66039,13 @@ export declare const WorkflowApiFp: (configuration?: Configuration) => {
65989
66039
  * @throws {RequiredError}
65990
66040
  */
65991
66041
  getWorkflowTaskByObjectType(object_type: string, object_id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<WorkflowTasksResponse>;
66042
+ /**
66043
+ * Retrieve workflow task open count
66044
+ * @summary Retrieve workflow task open count
66045
+ * @param {*} [options] Override http request option.
66046
+ * @throws {RequiredError}
66047
+ */
66048
+ getWorkflowTaskOpenCount(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<WorkflowTaskOpenCountResponse>;
65992
66049
  /**
65993
66050
  * Retrieves a unique list of all the existing workflow task tags.
65994
66051
  * @summary Get a list of existing workflow task tags
@@ -66087,6 +66144,13 @@ export declare const WorkflowApiFactory: (configuration?: Configuration, fetch?:
66087
66144
  * @throws {RequiredError}
66088
66145
  */
66089
66146
  getWorkflowTaskByObjectType(object_type: string, object_id: string, options?: any): Promise<WorkflowTasksResponse>;
66147
+ /**
66148
+ * Retrieve workflow task open count
66149
+ * @summary Retrieve workflow task open count
66150
+ * @param {*} [options] Override http request option.
66151
+ * @throws {RequiredError}
66152
+ */
66153
+ getWorkflowTaskOpenCount(options?: any): Promise<WorkflowTaskOpenCountResponse>;
66090
66154
  /**
66091
66155
  * Retrieves a unique list of all the existing workflow task tags.
66092
66156
  * @summary Get a list of existing workflow task tags
@@ -66193,6 +66257,14 @@ export interface WorkflowApiInterface {
66193
66257
  * @memberof WorkflowApiInterface
66194
66258
  */
66195
66259
  getWorkflowTaskByObjectType(object_type: string, object_id: string, options?: any): Promise<WorkflowTasksResponse>;
66260
+ /**
66261
+ * Retrieve workflow task open count
66262
+ * @summary Retrieve workflow task open count
66263
+ * @param {*} [options] Override http request option.
66264
+ * @throws {RequiredError}
66265
+ * @memberof WorkflowApiInterface
66266
+ */
66267
+ getWorkflowTaskOpenCount(options?: any): Promise<WorkflowTaskOpenCountResponse>;
66196
66268
  /**
66197
66269
  * Retrieves a unique list of all the existing workflow task tags.
66198
66270
  * @summary Get a list of existing workflow task tags
@@ -66304,6 +66376,14 @@ export declare class WorkflowApi extends BaseAPI implements WorkflowApiInterface
66304
66376
  * @memberof WorkflowApi
66305
66377
  */
66306
66378
  getWorkflowTaskByObjectType(object_type: string, object_id: string, options?: any): Promise<WorkflowTasksResponse>;
66379
+ /**
66380
+ * Retrieve workflow task open count
66381
+ * @summary Retrieve workflow task open count
66382
+ * @param {*} [options] Override http request option.
66383
+ * @throws {RequiredError}
66384
+ * @memberof WorkflowApi
66385
+ */
66386
+ getWorkflowTaskOpenCount(options?: any): Promise<WorkflowTaskOpenCountResponse>;
66307
66387
  /**
66308
66388
  * Retrieves a unique list of all the existing workflow task tags.
66309
66389
  * @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.188",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "keywords": [