ultracart_rest_api_v2_typescript 3.11.8 → 3.11.9

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.11.8
1
+ ## ultracart_rest_api_v2_typescript@3.11.9
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.11.8 --save
39
+ npm install ultracart_rest_api_v2_typescript@3.11.9 --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.11.9 | 05/05/2025 | conversations - method to fetch all agent profiles for admin screens |
57
58
  | 3.11.8 | 04/22/2025 | order property fields for created_by and created_dts |
58
59
  | 3.11.7 | 04/21/2025 | conversation agent additional fields |
59
60
  | 3.11.6 | 04/16/2025 | added channel partner order item properties |
package/api.ts CHANGED
@@ -7425,6 +7425,44 @@ export interface ConversationAgentProfileResponse {
7425
7425
  warning?: Warning;
7426
7426
  }
7427
7427
 
7428
+ /**
7429
+ *
7430
+ * @export
7431
+ * @interface ConversationAgentProfilesResponse
7432
+ */
7433
+ export interface ConversationAgentProfilesResponse {
7434
+ /**
7435
+ *
7436
+ * @type {Array<ConversationAgentProfile>}
7437
+ * @memberof ConversationAgentProfilesResponse
7438
+ */
7439
+ agent_profiles?: Array<ConversationAgentProfile>;
7440
+ /**
7441
+ *
7442
+ * @type {ModelError}
7443
+ * @memberof ConversationAgentProfilesResponse
7444
+ */
7445
+ error?: ModelError;
7446
+ /**
7447
+ *
7448
+ * @type {ResponseMetadata}
7449
+ * @memberof ConversationAgentProfilesResponse
7450
+ */
7451
+ metadata?: ResponseMetadata;
7452
+ /**
7453
+ * Indicates if API call was successful
7454
+ * @type {boolean}
7455
+ * @memberof ConversationAgentProfilesResponse
7456
+ */
7457
+ success?: boolean;
7458
+ /**
7459
+ *
7460
+ * @type {Warning}
7461
+ * @memberof ConversationAgentProfilesResponse
7462
+ */
7463
+ warning?: Warning;
7464
+ }
7465
+
7428
7466
  /**
7429
7467
  *
7430
7468
  * @export
@@ -52741,6 +52779,52 @@ export const ConversationApiFetchParamCreator = function (configuration?: Config
52741
52779
 
52742
52780
 
52743
52781
 
52782
+ // authentication ultraCartOauth required
52783
+ // oauth required
52784
+ if (configuration && configuration.accessToken) {
52785
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
52786
+ ? configuration.accessToken("ultraCartOauth", ["conversation_read"])
52787
+ : configuration.accessToken;
52788
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
52789
+ }
52790
+
52791
+ // authentication ultraCartSimpleApiKey required
52792
+ if (configuration && configuration.apiKey) {
52793
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
52794
+ ? configuration.apiKey("x-ultracart-simple-key")
52795
+ : configuration.apiKey;
52796
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
52797
+ }
52798
+
52799
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
52800
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
52801
+ delete localVarUrlObj.search;
52802
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
52803
+
52804
+ return {
52805
+ url: url.format(localVarUrlObj),
52806
+ options: localVarRequestOptions,
52807
+ };
52808
+ },
52809
+ /**
52810
+ * Retrieve the agents profile
52811
+ * @summary Get agent profiles
52812
+ * @param {*} [options] Override http request option.
52813
+ * @throws {RequiredError}
52814
+ */
52815
+ getAgentProfiles(options: any = {}): FetchArgs {
52816
+ const localVarPath = `/conversation/agent/profiles`;
52817
+ const localVarUrlObj = url.parse(localVarPath, true);
52818
+ const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
52819
+ const localVarHeaderParameter = {} as any;
52820
+ const localVarQueryParameter = {} as any;
52821
+
52822
+ if(configuration && configuration.apiVersion) {
52823
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
52824
+ }
52825
+
52826
+
52827
+
52744
52828
  // authentication ultraCartOauth required
52745
52829
  // oauth required
52746
52830
  if (configuration && configuration.accessToken) {
@@ -56787,6 +56871,26 @@ export const ConversationApiFp = function(configuration?: Configuration) {
56787
56871
  });
56788
56872
  };
56789
56873
  },
56874
+ /**
56875
+ * Retrieve the agents profile
56876
+ * @summary Get agent profiles
56877
+ * @param {*} [options] Override http request option.
56878
+ * @throws {RequiredError}
56879
+ */
56880
+ getAgentProfiles(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationAgentProfilesResponse> {
56881
+ const localVarFetchArgs = ConversationApiFetchParamCreator(configuration).getAgentProfiles(options);
56882
+ return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
56883
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
56884
+
56885
+ if (response.status >= 200 && response.status < 300) {
56886
+ return response.json();
56887
+
56888
+ } else {
56889
+ throw response;
56890
+ }
56891
+ });
56892
+ };
56893
+ },
56790
56894
  /**
56791
56895
  * Retrieve a JWT to authorize an agent to make a websocket connection.
56792
56896
  * @summary Get agent websocket authorization
@@ -58399,6 +58503,15 @@ export const ConversationApiFactory = function (configuration?: Configuration, f
58399
58503
  getAgentProfile(options?: any) {
58400
58504
  return ConversationApiFp(configuration).getAgentProfile(options)(fetch, basePath);
58401
58505
  },
58506
+ /**
58507
+ * Retrieve the agents profile
58508
+ * @summary Get agent profiles
58509
+ * @param {*} [options] Override http request option.
58510
+ * @throws {RequiredError}
58511
+ */
58512
+ getAgentProfiles(options?: any) {
58513
+ return ConversationApiFp(configuration).getAgentProfiles(options)(fetch, basePath);
58514
+ },
58402
58515
  /**
58403
58516
  * Retrieve a JWT to authorize an agent to make a websocket connection.
58404
58517
  * @summary Get agent websocket authorization
@@ -59241,6 +59354,15 @@ export interface ConversationApiInterface {
59241
59354
  */
59242
59355
  getAgentProfile(options?: any): Promise<ConversationAgentProfileResponse>;
59243
59356
 
59357
+ /**
59358
+ * Retrieve the agents profile
59359
+ * @summary Get agent profiles
59360
+ * @param {*} [options] Override http request option.
59361
+ * @throws {RequiredError}
59362
+ * @memberof ConversationApiInterface
59363
+ */
59364
+ getAgentProfiles(options?: any): Promise<ConversationAgentProfilesResponse>;
59365
+
59244
59366
  /**
59245
59367
  * Retrieve a JWT to authorize an agent to make a websocket connection.
59246
59368
  * @summary Get agent websocket authorization
@@ -60109,6 +60231,17 @@ export class ConversationApi extends BaseAPI implements ConversationApiInterface
60109
60231
  return ConversationApiFp(this.configuration).getAgentProfile(options)(this.fetch, this.basePath);
60110
60232
  }
60111
60233
 
60234
+ /**
60235
+ * Retrieve the agents profile
60236
+ * @summary Get agent profiles
60237
+ * @param {*} [options] Override http request option.
60238
+ * @throws {RequiredError}
60239
+ * @memberof ConversationApi
60240
+ */
60241
+ public getAgentProfiles(options?: any) {
60242
+ return ConversationApiFp(this.configuration).getAgentProfiles(options)(this.fetch, this.basePath);
60243
+ }
60244
+
60112
60245
  /**
60113
60246
  * Retrieve a JWT to authorize an agent to make a websocket connection.
60114
60247
  * @summary Get agent websocket authorization
@@ -103679,13 +103812,21 @@ export const WebhookApiFetchParamCreator = function (configuration?: Configurati
103679
103812
  * Retrieves the log summary information for a given webhook. This is useful for displaying all the various logs that can be viewed.
103680
103813
  * @summary Retrieve the log summaries
103681
103814
  * @param {number} webhookOid The webhook oid to retrieve log summaries for.
103815
+ * @param {string} [requestId]
103816
+ * @param {string} [beginDate]
103817
+ * @param {string} [endDate]
103818
+ * @param {string} [status]
103819
+ * @param {string} [event]
103820
+ * @param {string} [orderId]
103821
+ * @param {string} [request]
103822
+ * @param {number} [duration]
103682
103823
  * @param {number} [_limit] The maximum number of records to return on this one API call.
103683
103824
  * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
103684
103825
  * @param {string} [_since] Fetch log summaries that have been delivered since this date/time.
103685
103826
  * @param {*} [options] Override http request option.
103686
103827
  * @throws {RequiredError}
103687
103828
  */
103688
- getWebhookLogSummaries(webhookOid: number, _limit?: number, _offset?: number, _since?: string, options: any = {}): FetchArgs {
103829
+ getWebhookLogSummaries(webhookOid: number, requestId?: string, beginDate?: string, endDate?: string, status?: string, event?: string, orderId?: string, request?: string, duration?: number, _limit?: number, _offset?: number, _since?: string, options: any = {}): FetchArgs {
103689
103830
  // verify required parameter 'webhookOid' is not null or undefined
103690
103831
  if (webhookOid === null || webhookOid === undefined) {
103691
103832
  throw new RequiredError('webhookOid','Required parameter webhookOid was null or undefined when calling getWebhookLogSummaries.');
@@ -103720,6 +103861,38 @@ export const WebhookApiFetchParamCreator = function (configuration?: Configurati
103720
103861
  localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
103721
103862
  }
103722
103863
 
103864
+ if (requestId !== undefined) {
103865
+ localVarQueryParameter['requestId'] = requestId;
103866
+ }
103867
+
103868
+ if (beginDate !== undefined) {
103869
+ localVarQueryParameter['beginDate'] = beginDate;
103870
+ }
103871
+
103872
+ if (endDate !== undefined) {
103873
+ localVarQueryParameter['endDate'] = endDate;
103874
+ }
103875
+
103876
+ if (status !== undefined) {
103877
+ localVarQueryParameter['status'] = status;
103878
+ }
103879
+
103880
+ if (event !== undefined) {
103881
+ localVarQueryParameter['event'] = event;
103882
+ }
103883
+
103884
+ if (orderId !== undefined) {
103885
+ localVarQueryParameter['orderId'] = orderId;
103886
+ }
103887
+
103888
+ if (request !== undefined) {
103889
+ localVarQueryParameter['request'] = request;
103890
+ }
103891
+
103892
+ if (duration !== undefined) {
103893
+ localVarQueryParameter['duration'] = duration;
103894
+ }
103895
+
103723
103896
  if (_limit !== undefined) {
103724
103897
  localVarQueryParameter['_limit'] = _limit;
103725
103898
  }
@@ -104069,14 +104242,22 @@ export const WebhookApiFp = function(configuration?: Configuration) {
104069
104242
  * Retrieves the log summary information for a given webhook. This is useful for displaying all the various logs that can be viewed.
104070
104243
  * @summary Retrieve the log summaries
104071
104244
  * @param {number} webhookOid The webhook oid to retrieve log summaries for.
104245
+ * @param {string} [requestId]
104246
+ * @param {string} [beginDate]
104247
+ * @param {string} [endDate]
104248
+ * @param {string} [status]
104249
+ * @param {string} [event]
104250
+ * @param {string} [orderId]
104251
+ * @param {string} [request]
104252
+ * @param {number} [duration]
104072
104253
  * @param {number} [_limit] The maximum number of records to return on this one API call.
104073
104254
  * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
104074
104255
  * @param {string} [_since] Fetch log summaries that have been delivered since this date/time.
104075
104256
  * @param {*} [options] Override http request option.
104076
104257
  * @throws {RequiredError}
104077
104258
  */
104078
- getWebhookLogSummaries(webhookOid: number, _limit?: number, _offset?: number, _since?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<WebhookLogSummariesResponse> {
104079
- const localVarFetchArgs = WebhookApiFetchParamCreator(configuration).getWebhookLogSummaries(webhookOid, _limit, _offset, _since, options);
104259
+ getWebhookLogSummaries(webhookOid: number, requestId?: string, beginDate?: string, endDate?: string, status?: string, event?: string, orderId?: string, request?: string, duration?: number, _limit?: number, _offset?: number, _since?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<WebhookLogSummariesResponse> {
104260
+ const localVarFetchArgs = WebhookApiFetchParamCreator(configuration).getWebhookLogSummaries(webhookOid, requestId, beginDate, endDate, status, event, orderId, request, duration, _limit, _offset, _since, options);
104080
104261
  return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
104081
104262
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
104082
104263
 
@@ -104224,14 +104405,22 @@ export const WebhookApiFactory = function (configuration?: Configuration, fetch?
104224
104405
  * Retrieves the log summary information for a given webhook. This is useful for displaying all the various logs that can be viewed.
104225
104406
  * @summary Retrieve the log summaries
104226
104407
  * @param {number} webhookOid The webhook oid to retrieve log summaries for.
104408
+ * @param {string} [requestId]
104409
+ * @param {string} [beginDate]
104410
+ * @param {string} [endDate]
104411
+ * @param {string} [status]
104412
+ * @param {string} [event]
104413
+ * @param {string} [orderId]
104414
+ * @param {string} [request]
104415
+ * @param {number} [duration]
104227
104416
  * @param {number} [_limit] The maximum number of records to return on this one API call.
104228
104417
  * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
104229
104418
  * @param {string} [_since] Fetch log summaries that have been delivered since this date/time.
104230
104419
  * @param {*} [options] Override http request option.
104231
104420
  * @throws {RequiredError}
104232
104421
  */
104233
- getWebhookLogSummaries(webhookOid: number, _limit?: number, _offset?: number, _since?: string, options?: any) {
104234
- return WebhookApiFp(configuration).getWebhookLogSummaries(webhookOid, _limit, _offset, _since, options)(fetch, basePath);
104422
+ getWebhookLogSummaries(webhookOid: number, requestId?: string, beginDate?: string, endDate?: string, status?: string, event?: string, orderId?: string, request?: string, duration?: number, _limit?: number, _offset?: number, _since?: string, options?: any) {
104423
+ return WebhookApiFp(configuration).getWebhookLogSummaries(webhookOid, requestId, beginDate, endDate, status, event, orderId, request, duration, _limit, _offset, _since, options)(fetch, basePath);
104235
104424
  },
104236
104425
  /**
104237
104426
  * Retrieves the webhooks associated with this application.
@@ -104324,6 +104513,14 @@ export interface WebhookApiInterface {
104324
104513
  * Retrieves the log summary information for a given webhook. This is useful for displaying all the various logs that can be viewed.
104325
104514
  * @summary Retrieve the log summaries
104326
104515
  * @param {number} webhookOid The webhook oid to retrieve log summaries for.
104516
+ * @param {string} [requestId]
104517
+ * @param {string} [beginDate]
104518
+ * @param {string} [endDate]
104519
+ * @param {string} [status]
104520
+ * @param {string} [event]
104521
+ * @param {string} [orderId]
104522
+ * @param {string} [request]
104523
+ * @param {number} [duration]
104327
104524
  * @param {number} [_limit] The maximum number of records to return on this one API call.
104328
104525
  * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
104329
104526
  * @param {string} [_since] Fetch log summaries that have been delivered since this date/time.
@@ -104331,7 +104528,7 @@ export interface WebhookApiInterface {
104331
104528
  * @throws {RequiredError}
104332
104529
  * @memberof WebhookApiInterface
104333
104530
  */
104334
- getWebhookLogSummaries(webhookOid: number, _limit?: number, _offset?: number, _since?: string, options?: any): Promise<WebhookLogSummariesResponse>;
104531
+ getWebhookLogSummaries(webhookOid: number, requestId?: string, beginDate?: string, endDate?: string, status?: string, event?: string, orderId?: string, request?: string, duration?: number, _limit?: number, _offset?: number, _since?: string, options?: any): Promise<WebhookLogSummariesResponse>;
104335
104532
 
104336
104533
  /**
104337
104534
  * Retrieves the webhooks associated with this application.
@@ -104430,6 +104627,14 @@ export class WebhookApi extends BaseAPI implements WebhookApiInterface {
104430
104627
  * Retrieves the log summary information for a given webhook. This is useful for displaying all the various logs that can be viewed.
104431
104628
  * @summary Retrieve the log summaries
104432
104629
  * @param {number} webhookOid The webhook oid to retrieve log summaries for.
104630
+ * @param {string} [requestId]
104631
+ * @param {string} [beginDate]
104632
+ * @param {string} [endDate]
104633
+ * @param {string} [status]
104634
+ * @param {string} [event]
104635
+ * @param {string} [orderId]
104636
+ * @param {string} [request]
104637
+ * @param {number} [duration]
104433
104638
  * @param {number} [_limit] The maximum number of records to return on this one API call.
104434
104639
  * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
104435
104640
  * @param {string} [_since] Fetch log summaries that have been delivered since this date/time.
@@ -104437,8 +104642,8 @@ export class WebhookApi extends BaseAPI implements WebhookApiInterface {
104437
104642
  * @throws {RequiredError}
104438
104643
  * @memberof WebhookApi
104439
104644
  */
104440
- public getWebhookLogSummaries(webhookOid: number, _limit?: number, _offset?: number, _since?: string, options?: any) {
104441
- return WebhookApiFp(this.configuration).getWebhookLogSummaries(webhookOid, _limit, _offset, _since, options)(this.fetch, this.basePath);
104645
+ public getWebhookLogSummaries(webhookOid: number, requestId?: string, beginDate?: string, endDate?: string, status?: string, event?: string, orderId?: string, request?: string, duration?: number, _limit?: number, _offset?: number, _since?: string, options?: any) {
104646
+ return WebhookApiFp(this.configuration).getWebhookLogSummaries(webhookOid, requestId, beginDate, endDate, status, event, orderId, request, duration, _limit, _offset, _since, options)(this.fetch, this.basePath);
104442
104647
  }
104443
104648
 
104444
104649
  /**
package/dist/api.d.ts CHANGED
@@ -7258,6 +7258,43 @@ export interface ConversationAgentProfileResponse {
7258
7258
  */
7259
7259
  warning?: Warning;
7260
7260
  }
7261
+ /**
7262
+ *
7263
+ * @export
7264
+ * @interface ConversationAgentProfilesResponse
7265
+ */
7266
+ export interface ConversationAgentProfilesResponse {
7267
+ /**
7268
+ *
7269
+ * @type {Array<ConversationAgentProfile>}
7270
+ * @memberof ConversationAgentProfilesResponse
7271
+ */
7272
+ agent_profiles?: Array<ConversationAgentProfile>;
7273
+ /**
7274
+ *
7275
+ * @type {ModelError}
7276
+ * @memberof ConversationAgentProfilesResponse
7277
+ */
7278
+ error?: ModelError;
7279
+ /**
7280
+ *
7281
+ * @type {ResponseMetadata}
7282
+ * @memberof ConversationAgentProfilesResponse
7283
+ */
7284
+ metadata?: ResponseMetadata;
7285
+ /**
7286
+ * Indicates if API call was successful
7287
+ * @type {boolean}
7288
+ * @memberof ConversationAgentProfilesResponse
7289
+ */
7290
+ success?: boolean;
7291
+ /**
7292
+ *
7293
+ * @type {Warning}
7294
+ * @memberof ConversationAgentProfilesResponse
7295
+ */
7296
+ warning?: Warning;
7297
+ }
7261
7298
  /**
7262
7299
  *
7263
7300
  * @export
@@ -47331,6 +47368,13 @@ export declare const ConversationApiFetchParamCreator: (configuration?: Configur
47331
47368
  * @throws {RequiredError}
47332
47369
  */
47333
47370
  getAgentProfile(options?: any): FetchArgs;
47371
+ /**
47372
+ * Retrieve the agents profile
47373
+ * @summary Get agent profiles
47374
+ * @param {*} [options] Override http request option.
47375
+ * @throws {RequiredError}
47376
+ */
47377
+ getAgentProfiles(options?: any): FetchArgs;
47334
47378
  /**
47335
47379
  * Retrieve a JWT to authorize an agent to make a websocket connection.
47336
47380
  * @summary Get agent websocket authorization
@@ -48004,6 +48048,13 @@ export declare const ConversationApiFp: (configuration?: Configuration) => {
48004
48048
  * @throws {RequiredError}
48005
48049
  */
48006
48050
  getAgentProfile(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationAgentProfileResponse>;
48051
+ /**
48052
+ * Retrieve the agents profile
48053
+ * @summary Get agent profiles
48054
+ * @param {*} [options] Override http request option.
48055
+ * @throws {RequiredError}
48056
+ */
48057
+ getAgentProfiles(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationAgentProfilesResponse>;
48007
48058
  /**
48008
48059
  * Retrieve a JWT to authorize an agent to make a websocket connection.
48009
48060
  * @summary Get agent websocket authorization
@@ -48677,6 +48728,13 @@ export declare const ConversationApiFactory: (configuration?: Configuration, fet
48677
48728
  * @throws {RequiredError}
48678
48729
  */
48679
48730
  getAgentProfile(options?: any): Promise<ConversationAgentProfileResponse>;
48731
+ /**
48732
+ * Retrieve the agents profile
48733
+ * @summary Get agent profiles
48734
+ * @param {*} [options] Override http request option.
48735
+ * @throws {RequiredError}
48736
+ */
48737
+ getAgentProfiles(options?: any): Promise<ConversationAgentProfilesResponse>;
48680
48738
  /**
48681
48739
  * Retrieve a JWT to authorize an agent to make a websocket connection.
48682
48740
  * @summary Get agent websocket authorization
@@ -49364,6 +49422,14 @@ export interface ConversationApiInterface {
49364
49422
  * @memberof ConversationApiInterface
49365
49423
  */
49366
49424
  getAgentProfile(options?: any): Promise<ConversationAgentProfileResponse>;
49425
+ /**
49426
+ * Retrieve the agents profile
49427
+ * @summary Get agent profiles
49428
+ * @param {*} [options] Override http request option.
49429
+ * @throws {RequiredError}
49430
+ * @memberof ConversationApiInterface
49431
+ */
49432
+ getAgentProfiles(options?: any): Promise<ConversationAgentProfilesResponse>;
49367
49433
  /**
49368
49434
  * Retrieve a JWT to authorize an agent to make a websocket connection.
49369
49435
  * @summary Get agent websocket authorization
@@ -50122,6 +50188,14 @@ export declare class ConversationApi extends BaseAPI implements ConversationApiI
50122
50188
  * @memberof ConversationApi
50123
50189
  */
50124
50190
  getAgentProfile(options?: any): Promise<ConversationAgentProfileResponse>;
50191
+ /**
50192
+ * Retrieve the agents profile
50193
+ * @summary Get agent profiles
50194
+ * @param {*} [options] Override http request option.
50195
+ * @throws {RequiredError}
50196
+ * @memberof ConversationApi
50197
+ */
50198
+ getAgentProfiles(options?: any): Promise<ConversationAgentProfilesResponse>;
50125
50199
  /**
50126
50200
  * Retrieve a JWT to authorize an agent to make a websocket connection.
50127
50201
  * @summary Get agent websocket authorization
@@ -67807,13 +67881,21 @@ export declare const WebhookApiFetchParamCreator: (configuration?: Configuration
67807
67881
  * Retrieves the log summary information for a given webhook. This is useful for displaying all the various logs that can be viewed.
67808
67882
  * @summary Retrieve the log summaries
67809
67883
  * @param {number} webhookOid The webhook oid to retrieve log summaries for.
67884
+ * @param {string} [requestId]
67885
+ * @param {string} [beginDate]
67886
+ * @param {string} [endDate]
67887
+ * @param {string} [status]
67888
+ * @param {string} [event]
67889
+ * @param {string} [orderId]
67890
+ * @param {string} [request]
67891
+ * @param {number} [duration]
67810
67892
  * @param {number} [_limit] The maximum number of records to return on this one API call.
67811
67893
  * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
67812
67894
  * @param {string} [_since] Fetch log summaries that have been delivered since this date/time.
67813
67895
  * @param {*} [options] Override http request option.
67814
67896
  * @throws {RequiredError}
67815
67897
  */
67816
- getWebhookLogSummaries(webhookOid: number, _limit?: number, _offset?: number, _since?: string, options?: any): FetchArgs;
67898
+ getWebhookLogSummaries(webhookOid: number, requestId?: string, beginDate?: string, endDate?: string, status?: string, event?: string, orderId?: string, request?: string, duration?: number, _limit?: number, _offset?: number, _since?: string, options?: any): FetchArgs;
67817
67899
  /**
67818
67900
  * Retrieves the webhooks associated with this application.
67819
67901
  * @summary Retrieve webhooks
@@ -67888,13 +67970,21 @@ export declare const WebhookApiFp: (configuration?: Configuration) => {
67888
67970
  * Retrieves the log summary information for a given webhook. This is useful for displaying all the various logs that can be viewed.
67889
67971
  * @summary Retrieve the log summaries
67890
67972
  * @param {number} webhookOid The webhook oid to retrieve log summaries for.
67973
+ * @param {string} [requestId]
67974
+ * @param {string} [beginDate]
67975
+ * @param {string} [endDate]
67976
+ * @param {string} [status]
67977
+ * @param {string} [event]
67978
+ * @param {string} [orderId]
67979
+ * @param {string} [request]
67980
+ * @param {number} [duration]
67891
67981
  * @param {number} [_limit] The maximum number of records to return on this one API call.
67892
67982
  * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
67893
67983
  * @param {string} [_since] Fetch log summaries that have been delivered since this date/time.
67894
67984
  * @param {*} [options] Override http request option.
67895
67985
  * @throws {RequiredError}
67896
67986
  */
67897
- getWebhookLogSummaries(webhookOid: number, _limit?: number, _offset?: number, _since?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<WebhookLogSummariesResponse>;
67987
+ getWebhookLogSummaries(webhookOid: number, requestId?: string, beginDate?: string, endDate?: string, status?: string, event?: string, orderId?: string, request?: string, duration?: number, _limit?: number, _offset?: number, _since?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<WebhookLogSummariesResponse>;
67898
67988
  /**
67899
67989
  * Retrieves the webhooks associated with this application.
67900
67990
  * @summary Retrieve webhooks
@@ -67969,13 +68059,21 @@ export declare const WebhookApiFactory: (configuration?: Configuration, fetch?:
67969
68059
  * Retrieves the log summary information for a given webhook. This is useful for displaying all the various logs that can be viewed.
67970
68060
  * @summary Retrieve the log summaries
67971
68061
  * @param {number} webhookOid The webhook oid to retrieve log summaries for.
68062
+ * @param {string} [requestId]
68063
+ * @param {string} [beginDate]
68064
+ * @param {string} [endDate]
68065
+ * @param {string} [status]
68066
+ * @param {string} [event]
68067
+ * @param {string} [orderId]
68068
+ * @param {string} [request]
68069
+ * @param {number} [duration]
67972
68070
  * @param {number} [_limit] The maximum number of records to return on this one API call.
67973
68071
  * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
67974
68072
  * @param {string} [_since] Fetch log summaries that have been delivered since this date/time.
67975
68073
  * @param {*} [options] Override http request option.
67976
68074
  * @throws {RequiredError}
67977
68075
  */
67978
- getWebhookLogSummaries(webhookOid: number, _limit?: number, _offset?: number, _since?: string, options?: any): Promise<WebhookLogSummariesResponse>;
68076
+ getWebhookLogSummaries(webhookOid: number, requestId?: string, beginDate?: string, endDate?: string, status?: string, event?: string, orderId?: string, request?: string, duration?: number, _limit?: number, _offset?: number, _since?: string, options?: any): Promise<WebhookLogSummariesResponse>;
67979
68077
  /**
67980
68078
  * Retrieves the webhooks associated with this application.
67981
68079
  * @summary Retrieve webhooks
@@ -68054,6 +68152,14 @@ export interface WebhookApiInterface {
68054
68152
  * Retrieves the log summary information for a given webhook. This is useful for displaying all the various logs that can be viewed.
68055
68153
  * @summary Retrieve the log summaries
68056
68154
  * @param {number} webhookOid The webhook oid to retrieve log summaries for.
68155
+ * @param {string} [requestId]
68156
+ * @param {string} [beginDate]
68157
+ * @param {string} [endDate]
68158
+ * @param {string} [status]
68159
+ * @param {string} [event]
68160
+ * @param {string} [orderId]
68161
+ * @param {string} [request]
68162
+ * @param {number} [duration]
68057
68163
  * @param {number} [_limit] The maximum number of records to return on this one API call.
68058
68164
  * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
68059
68165
  * @param {string} [_since] Fetch log summaries that have been delivered since this date/time.
@@ -68061,7 +68167,7 @@ export interface WebhookApiInterface {
68061
68167
  * @throws {RequiredError}
68062
68168
  * @memberof WebhookApiInterface
68063
68169
  */
68064
- getWebhookLogSummaries(webhookOid: number, _limit?: number, _offset?: number, _since?: string, options?: any): Promise<WebhookLogSummariesResponse>;
68170
+ getWebhookLogSummaries(webhookOid: number, requestId?: string, beginDate?: string, endDate?: string, status?: string, event?: string, orderId?: string, request?: string, duration?: number, _limit?: number, _offset?: number, _since?: string, options?: any): Promise<WebhookLogSummariesResponse>;
68065
68171
  /**
68066
68172
  * Retrieves the webhooks associated with this application.
68067
68173
  * @summary Retrieve webhooks
@@ -68145,6 +68251,14 @@ export declare class WebhookApi extends BaseAPI implements WebhookApiInterface {
68145
68251
  * Retrieves the log summary information for a given webhook. This is useful for displaying all the various logs that can be viewed.
68146
68252
  * @summary Retrieve the log summaries
68147
68253
  * @param {number} webhookOid The webhook oid to retrieve log summaries for.
68254
+ * @param {string} [requestId]
68255
+ * @param {string} [beginDate]
68256
+ * @param {string} [endDate]
68257
+ * @param {string} [status]
68258
+ * @param {string} [event]
68259
+ * @param {string} [orderId]
68260
+ * @param {string} [request]
68261
+ * @param {number} [duration]
68148
68262
  * @param {number} [_limit] The maximum number of records to return on this one API call.
68149
68263
  * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
68150
68264
  * @param {string} [_since] Fetch log summaries that have been delivered since this date/time.
@@ -68152,7 +68266,7 @@ export declare class WebhookApi extends BaseAPI implements WebhookApiInterface {
68152
68266
  * @throws {RequiredError}
68153
68267
  * @memberof WebhookApi
68154
68268
  */
68155
- getWebhookLogSummaries(webhookOid: number, _limit?: number, _offset?: number, _since?: string, options?: any): Promise<WebhookLogSummariesResponse>;
68269
+ getWebhookLogSummaries(webhookOid: number, requestId?: string, beginDate?: string, endDate?: string, status?: string, event?: string, orderId?: string, request?: string, duration?: number, _limit?: number, _offset?: number, _since?: string, options?: any): Promise<WebhookLogSummariesResponse>;
68156
68270
  /**
68157
68271
  * Retrieves the webhooks associated with this application.
68158
68272
  * @summary Retrieve webhooks
package/dist/api.js CHANGED
@@ -8151,6 +8151,46 @@ var ConversationApiFetchParamCreator = function (configuration) {
8151
8151
  options: localVarRequestOptions,
8152
8152
  };
8153
8153
  },
8154
+ /**
8155
+ * Retrieve the agents profile
8156
+ * @summary Get agent profiles
8157
+ * @param {*} [options] Override http request option.
8158
+ * @throws {RequiredError}
8159
+ */
8160
+ getAgentProfiles: function (options) {
8161
+ if (options === void 0) { options = {}; }
8162
+ var localVarPath = "/conversation/agent/profiles";
8163
+ var localVarUrlObj = url.parse(localVarPath, true);
8164
+ var localVarRequestOptions = Object.assign({ method: 'GET' }, options);
8165
+ var localVarHeaderParameter = {};
8166
+ var localVarQueryParameter = {};
8167
+ if (configuration && configuration.apiVersion) {
8168
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
8169
+ }
8170
+ // authentication ultraCartOauth required
8171
+ // oauth required
8172
+ if (configuration && configuration.accessToken) {
8173
+ var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
8174
+ ? configuration.accessToken("ultraCartOauth", ["conversation_read"])
8175
+ : configuration.accessToken;
8176
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
8177
+ }
8178
+ // authentication ultraCartSimpleApiKey required
8179
+ if (configuration && configuration.apiKey) {
8180
+ var localVarApiKeyValue = typeof configuration.apiKey === 'function'
8181
+ ? configuration.apiKey("x-ultracart-simple-key")
8182
+ : configuration.apiKey;
8183
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
8184
+ }
8185
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
8186
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
8187
+ delete localVarUrlObj.search;
8188
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
8189
+ return {
8190
+ url: url.format(localVarUrlObj),
8191
+ options: localVarRequestOptions,
8192
+ };
8193
+ },
8154
8194
  /**
8155
8195
  * Retrieve a JWT to authorize an agent to make a websocket connection.
8156
8196
  * @summary Get agent websocket authorization
@@ -11729,6 +11769,27 @@ var ConversationApiFp = function (configuration) {
11729
11769
  });
11730
11770
  };
11731
11771
  },
11772
+ /**
11773
+ * Retrieve the agents profile
11774
+ * @summary Get agent profiles
11775
+ * @param {*} [options] Override http request option.
11776
+ * @throws {RequiredError}
11777
+ */
11778
+ getAgentProfiles: function (options) {
11779
+ var localVarFetchArgs = (0, exports.ConversationApiFetchParamCreator)(configuration).getAgentProfiles(options);
11780
+ return function (fetch, basePath) {
11781
+ if (fetch === void 0) { fetch = portableFetch; }
11782
+ if (basePath === void 0) { basePath = BASE_PATH; }
11783
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
11784
+ if (response.status >= 200 && response.status < 300) {
11785
+ return response.json();
11786
+ }
11787
+ else {
11788
+ throw response;
11789
+ }
11790
+ });
11791
+ };
11792
+ },
11732
11793
  /**
11733
11794
  * Retrieve a JWT to authorize an agent to make a websocket connection.
11734
11795
  * @summary Get agent websocket authorization
@@ -13411,6 +13472,15 @@ var ConversationApiFactory = function (configuration, fetch, basePath) {
13411
13472
  getAgentProfile: function (options) {
13412
13473
  return (0, exports.ConversationApiFp)(configuration).getAgentProfile(options)(fetch, basePath);
13413
13474
  },
13475
+ /**
13476
+ * Retrieve the agents profile
13477
+ * @summary Get agent profiles
13478
+ * @param {*} [options] Override http request option.
13479
+ * @throws {RequiredError}
13480
+ */
13481
+ getAgentProfiles: function (options) {
13482
+ return (0, exports.ConversationApiFp)(configuration).getAgentProfiles(options)(fetch, basePath);
13483
+ },
13414
13484
  /**
13415
13485
  * Retrieve a JWT to authorize an agent to make a websocket connection.
13416
13486
  * @summary Get agent websocket authorization
@@ -14271,6 +14341,16 @@ var ConversationApi = /** @class */ (function (_super) {
14271
14341
  ConversationApi.prototype.getAgentProfile = function (options) {
14272
14342
  return (0, exports.ConversationApiFp)(this.configuration).getAgentProfile(options)(this.fetch, this.basePath);
14273
14343
  };
14344
+ /**
14345
+ * Retrieve the agents profile
14346
+ * @summary Get agent profiles
14347
+ * @param {*} [options] Override http request option.
14348
+ * @throws {RequiredError}
14349
+ * @memberof ConversationApi
14350
+ */
14351
+ ConversationApi.prototype.getAgentProfiles = function (options) {
14352
+ return (0, exports.ConversationApiFp)(this.configuration).getAgentProfiles(options)(this.fetch, this.basePath);
14353
+ };
14274
14354
  /**
14275
14355
  * Retrieve a JWT to authorize an agent to make a websocket connection.
14276
14356
  * @summary Get agent websocket authorization
@@ -51214,13 +51294,21 @@ var WebhookApiFetchParamCreator = function (configuration) {
51214
51294
  * Retrieves the log summary information for a given webhook. This is useful for displaying all the various logs that can be viewed.
51215
51295
  * @summary Retrieve the log summaries
51216
51296
  * @param {number} webhookOid The webhook oid to retrieve log summaries for.
51297
+ * @param {string} [requestId]
51298
+ * @param {string} [beginDate]
51299
+ * @param {string} [endDate]
51300
+ * @param {string} [status]
51301
+ * @param {string} [event]
51302
+ * @param {string} [orderId]
51303
+ * @param {string} [request]
51304
+ * @param {number} [duration]
51217
51305
  * @param {number} [_limit] The maximum number of records to return on this one API call.
51218
51306
  * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
51219
51307
  * @param {string} [_since] Fetch log summaries that have been delivered since this date/time.
51220
51308
  * @param {*} [options] Override http request option.
51221
51309
  * @throws {RequiredError}
51222
51310
  */
51223
- getWebhookLogSummaries: function (webhookOid, _limit, _offset, _since, options) {
51311
+ getWebhookLogSummaries: function (webhookOid, requestId, beginDate, endDate, status, event, orderId, request, duration, _limit, _offset, _since, options) {
51224
51312
  if (options === void 0) { options = {}; }
51225
51313
  // verify required parameter 'webhookOid' is not null or undefined
51226
51314
  if (webhookOid === null || webhookOid === undefined) {
@@ -51250,6 +51338,30 @@ var WebhookApiFetchParamCreator = function (configuration) {
51250
51338
  : configuration.apiKey;
51251
51339
  localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
51252
51340
  }
51341
+ if (requestId !== undefined) {
51342
+ localVarQueryParameter['requestId'] = requestId;
51343
+ }
51344
+ if (beginDate !== undefined) {
51345
+ localVarQueryParameter['beginDate'] = beginDate;
51346
+ }
51347
+ if (endDate !== undefined) {
51348
+ localVarQueryParameter['endDate'] = endDate;
51349
+ }
51350
+ if (status !== undefined) {
51351
+ localVarQueryParameter['status'] = status;
51352
+ }
51353
+ if (event !== undefined) {
51354
+ localVarQueryParameter['event'] = event;
51355
+ }
51356
+ if (orderId !== undefined) {
51357
+ localVarQueryParameter['orderId'] = orderId;
51358
+ }
51359
+ if (request !== undefined) {
51360
+ localVarQueryParameter['request'] = request;
51361
+ }
51362
+ if (duration !== undefined) {
51363
+ localVarQueryParameter['duration'] = duration;
51364
+ }
51253
51365
  if (_limit !== undefined) {
51254
51366
  localVarQueryParameter['_limit'] = _limit;
51255
51367
  }
@@ -51566,14 +51678,22 @@ var WebhookApiFp = function (configuration) {
51566
51678
  * Retrieves the log summary information for a given webhook. This is useful for displaying all the various logs that can be viewed.
51567
51679
  * @summary Retrieve the log summaries
51568
51680
  * @param {number} webhookOid The webhook oid to retrieve log summaries for.
51681
+ * @param {string} [requestId]
51682
+ * @param {string} [beginDate]
51683
+ * @param {string} [endDate]
51684
+ * @param {string} [status]
51685
+ * @param {string} [event]
51686
+ * @param {string} [orderId]
51687
+ * @param {string} [request]
51688
+ * @param {number} [duration]
51569
51689
  * @param {number} [_limit] The maximum number of records to return on this one API call.
51570
51690
  * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
51571
51691
  * @param {string} [_since] Fetch log summaries that have been delivered since this date/time.
51572
51692
  * @param {*} [options] Override http request option.
51573
51693
  * @throws {RequiredError}
51574
51694
  */
51575
- getWebhookLogSummaries: function (webhookOid, _limit, _offset, _since, options) {
51576
- var localVarFetchArgs = (0, exports.WebhookApiFetchParamCreator)(configuration).getWebhookLogSummaries(webhookOid, _limit, _offset, _since, options);
51695
+ getWebhookLogSummaries: function (webhookOid, requestId, beginDate, endDate, status, event, orderId, request, duration, _limit, _offset, _since, options) {
51696
+ var localVarFetchArgs = (0, exports.WebhookApiFetchParamCreator)(configuration).getWebhookLogSummaries(webhookOid, requestId, beginDate, endDate, status, event, orderId, request, duration, _limit, _offset, _since, options);
51577
51697
  return function (fetch, basePath) {
51578
51698
  if (fetch === void 0) { fetch = portableFetch; }
51579
51699
  if (basePath === void 0) { basePath = BASE_PATH; }
@@ -51726,14 +51846,22 @@ var WebhookApiFactory = function (configuration, fetch, basePath) {
51726
51846
  * Retrieves the log summary information for a given webhook. This is useful for displaying all the various logs that can be viewed.
51727
51847
  * @summary Retrieve the log summaries
51728
51848
  * @param {number} webhookOid The webhook oid to retrieve log summaries for.
51849
+ * @param {string} [requestId]
51850
+ * @param {string} [beginDate]
51851
+ * @param {string} [endDate]
51852
+ * @param {string} [status]
51853
+ * @param {string} [event]
51854
+ * @param {string} [orderId]
51855
+ * @param {string} [request]
51856
+ * @param {number} [duration]
51729
51857
  * @param {number} [_limit] The maximum number of records to return on this one API call.
51730
51858
  * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
51731
51859
  * @param {string} [_since] Fetch log summaries that have been delivered since this date/time.
51732
51860
  * @param {*} [options] Override http request option.
51733
51861
  * @throws {RequiredError}
51734
51862
  */
51735
- getWebhookLogSummaries: function (webhookOid, _limit, _offset, _since, options) {
51736
- return (0, exports.WebhookApiFp)(configuration).getWebhookLogSummaries(webhookOid, _limit, _offset, _since, options)(fetch, basePath);
51863
+ getWebhookLogSummaries: function (webhookOid, requestId, beginDate, endDate, status, event, orderId, request, duration, _limit, _offset, _since, options) {
51864
+ return (0, exports.WebhookApiFp)(configuration).getWebhookLogSummaries(webhookOid, requestId, beginDate, endDate, status, event, orderId, request, duration, _limit, _offset, _since, options)(fetch, basePath);
51737
51865
  },
51738
51866
  /**
51739
51867
  * Retrieves the webhooks associated with this application.
@@ -51834,6 +51962,14 @@ var WebhookApi = /** @class */ (function (_super) {
51834
51962
  * Retrieves the log summary information for a given webhook. This is useful for displaying all the various logs that can be viewed.
51835
51963
  * @summary Retrieve the log summaries
51836
51964
  * @param {number} webhookOid The webhook oid to retrieve log summaries for.
51965
+ * @param {string} [requestId]
51966
+ * @param {string} [beginDate]
51967
+ * @param {string} [endDate]
51968
+ * @param {string} [status]
51969
+ * @param {string} [event]
51970
+ * @param {string} [orderId]
51971
+ * @param {string} [request]
51972
+ * @param {number} [duration]
51837
51973
  * @param {number} [_limit] The maximum number of records to return on this one API call.
51838
51974
  * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
51839
51975
  * @param {string} [_since] Fetch log summaries that have been delivered since this date/time.
@@ -51841,8 +51977,8 @@ var WebhookApi = /** @class */ (function (_super) {
51841
51977
  * @throws {RequiredError}
51842
51978
  * @memberof WebhookApi
51843
51979
  */
51844
- WebhookApi.prototype.getWebhookLogSummaries = function (webhookOid, _limit, _offset, _since, options) {
51845
- return (0, exports.WebhookApiFp)(this.configuration).getWebhookLogSummaries(webhookOid, _limit, _offset, _since, options)(this.fetch, this.basePath);
51980
+ WebhookApi.prototype.getWebhookLogSummaries = function (webhookOid, requestId, beginDate, endDate, status, event, orderId, request, duration, _limit, _offset, _since, options) {
51981
+ return (0, exports.WebhookApiFp)(this.configuration).getWebhookLogSummaries(webhookOid, requestId, beginDate, endDate, status, event, orderId, request, duration, _limit, _offset, _since, options)(this.fetch, this.basePath);
51846
51982
  };
51847
51983
  /**
51848
51984
  * Retrieves the webhooks associated with this application.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "3.11.8",
3
+ "version": "3.11.9",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "keywords": [