ultracart_rest_api_v2_typescript 3.11.34 → 3.11.36

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.34
1
+ ## ultracart_rest_api_v2_typescript@3.11.36
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.34 --save
39
+ npm install ultracart_rest_api_v2_typescript@3.11.36 --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.11.36 | 12/22/2025 | conversation - agent auth worker token v2 |
58
+ | 3.11.35 | 12/02/2025 | caching option added to getCustomers, created new method searchCustomers |
57
59
  | 3.11.34 | 12/02/2025 | coupons - added optional free specific shipping method to two coupons |
58
60
  | 3.11.33 | 11/26/2025 | conversation - AI agent profile fields |
59
61
  | 3.11.32 | 11/20/2025 | conversion api bug fix on incorrect signature |
package/api.ts CHANGED
@@ -7041,6 +7041,12 @@ export interface ConversationAgentAuth {
7041
7041
  * @memberof ConversationAgentAuth
7042
7042
  */
7043
7043
  pbx_worker_token?: string;
7044
+ /**
7045
+ *
7046
+ * @type {string}
7047
+ * @memberof ConversationAgentAuth
7048
+ */
7049
+ pbx_worker_token_v2?: string;
7044
7050
  /**
7045
7051
  *
7046
7052
  * @type {Array<ConversationTwilioAccount>}
@@ -17333,6 +17339,12 @@ export interface CustomerQuery {
17333
17339
  * @memberof CustomerQuery
17334
17340
  */
17335
17341
  qb_class?: string;
17342
+ /**
17343
+ * Query Target
17344
+ * @type {string}
17345
+ * @memberof CustomerQuery
17346
+ */
17347
+ query_target?: CustomerQuery.QueryTargetEnum;
17336
17348
  /**
17337
17349
  * QuickBooks name to import this customer as
17338
17350
  * @type {string}
@@ -17407,6 +17419,21 @@ export interface CustomerQuery {
17407
17419
  signup_dts_start?: string;
17408
17420
  }
17409
17421
 
17422
+ /**
17423
+ * @export
17424
+ * @namespace CustomerQuery
17425
+ */
17426
+ export namespace CustomerQuery {
17427
+ /**
17428
+ * @export
17429
+ * @enum {string}
17430
+ */
17431
+ export enum QueryTargetEnum {
17432
+ Origin = <any> 'origin',
17433
+ Cache = <any> 'cache'
17434
+ }
17435
+ }
17436
+
17410
17437
  /**
17411
17438
  *
17412
17439
  * @export
@@ -18980,6 +19007,24 @@ export interface EmailCommseq {
18980
19007
  * @interface EmailCommseqEmail
18981
19008
  */
18982
19009
  export interface EmailCommseqEmail {
19010
+ /**
19011
+ *
19012
+ * @type {boolean}
19013
+ * @memberof EmailCommseqEmail
19014
+ */
19015
+ ai_generation?: boolean;
19016
+ /**
19017
+ *
19018
+ * @type {string}
19019
+ * @memberof EmailCommseqEmail
19020
+ */
19021
+ ai_generation_prompt?: string;
19022
+ /**
19023
+ *
19024
+ * @type {number}
19025
+ * @memberof EmailCommseqEmail
19026
+ */
19027
+ ai_generation_user_id?: number;
18983
19028
  /**
18984
19029
  * Deleted
18985
19030
  * @type {boolean}
@@ -67284,6 +67329,92 @@ export const CustomerApiFetchParamCreator = function (configuration?: Configurat
67284
67329
  options: localVarRequestOptions,
67285
67330
  };
67286
67331
  },
67332
+ /**
67333
+ * Retrieves customers from the account by matching the search value against most customer fields. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination. This search also goes against the cache so updates should not be performed with these result objects. Always re-query the individual customer profile if you are going to make updates.
67334
+ * @summary Search for customers
67335
+ * @param {string} [search_string] Search
67336
+ * @param {string} [signup_dts_start] Signup date start
67337
+ * @param {string} [signup_dts_end] Signup date end
67338
+ * @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
67339
+ * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
67340
+ * @param {string} [_since] Fetch customers that have been created/modified since this date/time.
67341
+ * @param {string} [_sort] The sort order of the customers. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
67342
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
67343
+ * @param {*} [options] Override http request option.
67344
+ * @throws {RequiredError}
67345
+ */
67346
+ searchCustomers(search_string?: string, signup_dts_start?: string, signup_dts_end?: string, _limit?: number, _offset?: number, _since?: string, _sort?: string, _expand?: string, options: any = {}): FetchArgs {
67347
+ const localVarPath = `/customer/customers/search`;
67348
+ const localVarUrlObj = url.parse(localVarPath, true);
67349
+ const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
67350
+ const localVarHeaderParameter = {} as any;
67351
+ const localVarQueryParameter = {} as any;
67352
+
67353
+ if(configuration && configuration.apiVersion) {
67354
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
67355
+ }
67356
+
67357
+
67358
+
67359
+ // authentication ultraCartOauth required
67360
+ // oauth required
67361
+ if (configuration && configuration.accessToken) {
67362
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
67363
+ ? configuration.accessToken("ultraCartOauth", ["customer_read"])
67364
+ : configuration.accessToken;
67365
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
67366
+ }
67367
+
67368
+ // authentication ultraCartSimpleApiKey required
67369
+ if (configuration && configuration.apiKey) {
67370
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
67371
+ ? configuration.apiKey("x-ultracart-simple-key")
67372
+ : configuration.apiKey;
67373
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
67374
+ }
67375
+
67376
+ if (search_string !== undefined) {
67377
+ localVarQueryParameter['search_string'] = search_string;
67378
+ }
67379
+
67380
+ if (signup_dts_start !== undefined) {
67381
+ localVarQueryParameter['signup_dts_start'] = signup_dts_start;
67382
+ }
67383
+
67384
+ if (signup_dts_end !== undefined) {
67385
+ localVarQueryParameter['signup_dts_end'] = signup_dts_end;
67386
+ }
67387
+
67388
+ if (_limit !== undefined) {
67389
+ localVarQueryParameter['_limit'] = _limit;
67390
+ }
67391
+
67392
+ if (_offset !== undefined) {
67393
+ localVarQueryParameter['_offset'] = _offset;
67394
+ }
67395
+
67396
+ if (_since !== undefined) {
67397
+ localVarQueryParameter['_since'] = _since;
67398
+ }
67399
+
67400
+ if (_sort !== undefined) {
67401
+ localVarQueryParameter['_sort'] = _sort;
67402
+ }
67403
+
67404
+ if (_expand !== undefined) {
67405
+ localVarQueryParameter['_expand'] = _expand;
67406
+ }
67407
+
67408
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
67409
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
67410
+ delete localVarUrlObj.search;
67411
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
67412
+
67413
+ return {
67414
+ url: url.format(localVarUrlObj),
67415
+ options: localVarRequestOptions,
67416
+ };
67417
+ },
67287
67418
  /**
67288
67419
  * Update a customer on the UltraCart account.
67289
67420
  * @summary Update a customer
@@ -68007,6 +68138,34 @@ export const CustomerApiFp = function(configuration?: Configuration) {
68007
68138
  });
68008
68139
  };
68009
68140
  },
68141
+ /**
68142
+ * Retrieves customers from the account by matching the search value against most customer fields. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination. This search also goes against the cache so updates should not be performed with these result objects. Always re-query the individual customer profile if you are going to make updates.
68143
+ * @summary Search for customers
68144
+ * @param {string} [search_string] Search
68145
+ * @param {string} [signup_dts_start] Signup date start
68146
+ * @param {string} [signup_dts_end] Signup date end
68147
+ * @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
68148
+ * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
68149
+ * @param {string} [_since] Fetch customers that have been created/modified since this date/time.
68150
+ * @param {string} [_sort] The sort order of the customers. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
68151
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
68152
+ * @param {*} [options] Override http request option.
68153
+ * @throws {RequiredError}
68154
+ */
68155
+ searchCustomers(search_string?: string, signup_dts_start?: string, signup_dts_end?: string, _limit?: number, _offset?: number, _since?: string, _sort?: string, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<CustomersResponse> {
68156
+ const localVarFetchArgs = CustomerApiFetchParamCreator(configuration).searchCustomers(search_string, signup_dts_start, signup_dts_end, _limit, _offset, _since, _sort, _expand, options);
68157
+ return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
68158
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
68159
+
68160
+ if (response.status >= 200 && response.status < 300) {
68161
+ return response.json();
68162
+
68163
+ } else {
68164
+ throw response;
68165
+ }
68166
+ });
68167
+ };
68168
+ },
68010
68169
  /**
68011
68170
  * Update a customer on the UltraCart account.
68012
68171
  * @summary Update a customer
@@ -68350,6 +68509,23 @@ export const CustomerApiFactory = function (configuration?: Configuration, fetch
68350
68509
  searchCustomerProfileValues(lookup_request: LookupRequest, options?: any) {
68351
68510
  return CustomerApiFp(configuration).searchCustomerProfileValues(lookup_request, options)(fetch, basePath);
68352
68511
  },
68512
+ /**
68513
+ * Retrieves customers from the account by matching the search value against most customer fields. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination. This search also goes against the cache so updates should not be performed with these result objects. Always re-query the individual customer profile if you are going to make updates.
68514
+ * @summary Search for customers
68515
+ * @param {string} [search_string] Search
68516
+ * @param {string} [signup_dts_start] Signup date start
68517
+ * @param {string} [signup_dts_end] Signup date end
68518
+ * @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
68519
+ * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
68520
+ * @param {string} [_since] Fetch customers that have been created/modified since this date/time.
68521
+ * @param {string} [_sort] The sort order of the customers. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
68522
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
68523
+ * @param {*} [options] Override http request option.
68524
+ * @throws {RequiredError}
68525
+ */
68526
+ searchCustomers(search_string?: string, signup_dts_start?: string, signup_dts_end?: string, _limit?: number, _offset?: number, _since?: string, _sort?: string, _expand?: string, options?: any) {
68527
+ return CustomerApiFp(configuration).searchCustomers(search_string, signup_dts_start, signup_dts_end, _limit, _offset, _since, _sort, _expand, options)(fetch, basePath);
68528
+ },
68353
68529
  /**
68354
68530
  * Update a customer on the UltraCart account.
68355
68531
  * @summary Update a customer
@@ -68649,6 +68825,23 @@ export interface CustomerApiInterface {
68649
68825
  */
68650
68826
  searchCustomerProfileValues(lookup_request: LookupRequest, options?: any): Promise<LookupResponse>;
68651
68827
 
68828
+ /**
68829
+ * Retrieves customers from the account by matching the search value against most customer fields. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination. This search also goes against the cache so updates should not be performed with these result objects. Always re-query the individual customer profile if you are going to make updates.
68830
+ * @summary Search for customers
68831
+ * @param {string} [search_string] Search
68832
+ * @param {string} [signup_dts_start] Signup date start
68833
+ * @param {string} [signup_dts_end] Signup date end
68834
+ * @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
68835
+ * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
68836
+ * @param {string} [_since] Fetch customers that have been created/modified since this date/time.
68837
+ * @param {string} [_sort] The sort order of the customers. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
68838
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
68839
+ * @param {*} [options] Override http request option.
68840
+ * @throws {RequiredError}
68841
+ * @memberof CustomerApiInterface
68842
+ */
68843
+ searchCustomers(search_string?: string, signup_dts_start?: string, signup_dts_end?: string, _limit?: number, _offset?: number, _since?: string, _sort?: string, _expand?: string, options?: any): Promise<CustomersResponse>;
68844
+
68652
68845
  /**
68653
68846
  * Update a customer on the UltraCart account.
68654
68847
  * @summary Update a customer
@@ -68988,6 +69181,25 @@ export class CustomerApi extends BaseAPI implements CustomerApiInterface {
68988
69181
  return CustomerApiFp(this.configuration).searchCustomerProfileValues(lookup_request, options)(this.fetch, this.basePath);
68989
69182
  }
68990
69183
 
69184
+ /**
69185
+ * Retrieves customers from the account by matching the search value against most customer fields. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination. This search also goes against the cache so updates should not be performed with these result objects. Always re-query the individual customer profile if you are going to make updates.
69186
+ * @summary Search for customers
69187
+ * @param {string} [search_string] Search
69188
+ * @param {string} [signup_dts_start] Signup date start
69189
+ * @param {string} [signup_dts_end] Signup date end
69190
+ * @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
69191
+ * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
69192
+ * @param {string} [_since] Fetch customers that have been created/modified since this date/time.
69193
+ * @param {string} [_sort] The sort order of the customers. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
69194
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
69195
+ * @param {*} [options] Override http request option.
69196
+ * @throws {RequiredError}
69197
+ * @memberof CustomerApi
69198
+ */
69199
+ public searchCustomers(search_string?: string, signup_dts_start?: string, signup_dts_end?: string, _limit?: number, _offset?: number, _since?: string, _sort?: string, _expand?: string, options?: any) {
69200
+ return CustomerApiFp(this.configuration).searchCustomers(search_string, signup_dts_start, signup_dts_end, _limit, _offset, _since, _sort, _expand, options)(this.fetch, this.basePath);
69201
+ }
69202
+
68991
69203
  /**
68992
69204
  * Update a customer on the UltraCart account.
68993
69205
  * @summary Update a customer
package/dist/api.d.ts CHANGED
@@ -6882,6 +6882,12 @@ export interface ConversationAgentAuth {
6882
6882
  * @memberof ConversationAgentAuth
6883
6883
  */
6884
6884
  pbx_worker_token?: string;
6885
+ /**
6886
+ *
6887
+ * @type {string}
6888
+ * @memberof ConversationAgentAuth
6889
+ */
6890
+ pbx_worker_token_v2?: string;
6885
6891
  /**
6886
6892
  *
6887
6893
  * @type {Array<ConversationTwilioAccount>}
@@ -16920,6 +16926,12 @@ export interface CustomerQuery {
16920
16926
  * @memberof CustomerQuery
16921
16927
  */
16922
16928
  qb_class?: string;
16929
+ /**
16930
+ * Query Target
16931
+ * @type {string}
16932
+ * @memberof CustomerQuery
16933
+ */
16934
+ query_target?: CustomerQuery.QueryTargetEnum;
16923
16935
  /**
16924
16936
  * QuickBooks name to import this customer as
16925
16937
  * @type {string}
@@ -16993,6 +17005,20 @@ export interface CustomerQuery {
16993
17005
  */
16994
17006
  signup_dts_start?: string;
16995
17007
  }
17008
+ /**
17009
+ * @export
17010
+ * @namespace CustomerQuery
17011
+ */
17012
+ export declare namespace CustomerQuery {
17013
+ /**
17014
+ * @export
17015
+ * @enum {string}
17016
+ */
17017
+ enum QueryTargetEnum {
17018
+ Origin,
17019
+ Cache
17020
+ }
17021
+ }
16996
17022
  /**
16997
17023
  *
16998
17024
  * @export
@@ -18536,6 +18562,24 @@ export interface EmailCommseq {
18536
18562
  * @interface EmailCommseqEmail
18537
18563
  */
18538
18564
  export interface EmailCommseqEmail {
18565
+ /**
18566
+ *
18567
+ * @type {boolean}
18568
+ * @memberof EmailCommseqEmail
18569
+ */
18570
+ ai_generation?: boolean;
18571
+ /**
18572
+ *
18573
+ * @type {string}
18574
+ * @memberof EmailCommseqEmail
18575
+ */
18576
+ ai_generation_prompt?: string;
18577
+ /**
18578
+ *
18579
+ * @type {number}
18580
+ * @memberof EmailCommseqEmail
18581
+ */
18582
+ ai_generation_user_id?: number;
18539
18583
  /**
18540
18584
  * Deleted
18541
18585
  * @type {boolean}
@@ -53992,6 +54036,21 @@ export declare const CustomerApiFetchParamCreator: (configuration?: Configuratio
53992
54036
  * @throws {RequiredError}
53993
54037
  */
53994
54038
  searchCustomerProfileValues(lookup_request: LookupRequest, options?: any): FetchArgs;
54039
+ /**
54040
+ * Retrieves customers from the account by matching the search value against most customer fields. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination. This search also goes against the cache so updates should not be performed with these result objects. Always re-query the individual customer profile if you are going to make updates.
54041
+ * @summary Search for customers
54042
+ * @param {string} [search_string] Search
54043
+ * @param {string} [signup_dts_start] Signup date start
54044
+ * @param {string} [signup_dts_end] Signup date end
54045
+ * @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
54046
+ * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
54047
+ * @param {string} [_since] Fetch customers that have been created/modified since this date/time.
54048
+ * @param {string} [_sort] The sort order of the customers. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
54049
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
54050
+ * @param {*} [options] Override http request option.
54051
+ * @throws {RequiredError}
54052
+ */
54053
+ searchCustomers(search_string?: string, signup_dts_start?: string, signup_dts_end?: string, _limit?: number, _offset?: number, _since?: string, _sort?: string, _expand?: string, options?: any): FetchArgs;
53995
54054
  /**
53996
54055
  * Update a customer on the UltraCart account.
53997
54056
  * @summary Update a customer
@@ -54240,6 +54299,21 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
54240
54299
  * @throws {RequiredError}
54241
54300
  */
54242
54301
  searchCustomerProfileValues(lookup_request: LookupRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<LookupResponse>;
54302
+ /**
54303
+ * Retrieves customers from the account by matching the search value against most customer fields. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination. This search also goes against the cache so updates should not be performed with these result objects. Always re-query the individual customer profile if you are going to make updates.
54304
+ * @summary Search for customers
54305
+ * @param {string} [search_string] Search
54306
+ * @param {string} [signup_dts_start] Signup date start
54307
+ * @param {string} [signup_dts_end] Signup date end
54308
+ * @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
54309
+ * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
54310
+ * @param {string} [_since] Fetch customers that have been created/modified since this date/time.
54311
+ * @param {string} [_sort] The sort order of the customers. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
54312
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
54313
+ * @param {*} [options] Override http request option.
54314
+ * @throws {RequiredError}
54315
+ */
54316
+ searchCustomers(search_string?: string, signup_dts_start?: string, signup_dts_end?: string, _limit?: number, _offset?: number, _since?: string, _sort?: string, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<CustomersResponse>;
54243
54317
  /**
54244
54318
  * Update a customer on the UltraCart account.
54245
54319
  * @summary Update a customer
@@ -54488,6 +54562,21 @@ export declare const CustomerApiFactory: (configuration?: Configuration, fetch?:
54488
54562
  * @throws {RequiredError}
54489
54563
  */
54490
54564
  searchCustomerProfileValues(lookup_request: LookupRequest, options?: any): Promise<LookupResponse>;
54565
+ /**
54566
+ * Retrieves customers from the account by matching the search value against most customer fields. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination. This search also goes against the cache so updates should not be performed with these result objects. Always re-query the individual customer profile if you are going to make updates.
54567
+ * @summary Search for customers
54568
+ * @param {string} [search_string] Search
54569
+ * @param {string} [signup_dts_start] Signup date start
54570
+ * @param {string} [signup_dts_end] Signup date end
54571
+ * @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
54572
+ * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
54573
+ * @param {string} [_since] Fetch customers that have been created/modified since this date/time.
54574
+ * @param {string} [_sort] The sort order of the customers. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
54575
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
54576
+ * @param {*} [options] Override http request option.
54577
+ * @throws {RequiredError}
54578
+ */
54579
+ searchCustomers(search_string?: string, signup_dts_start?: string, signup_dts_end?: string, _limit?: number, _offset?: number, _since?: string, _sort?: string, _expand?: string, options?: any): Promise<CustomersResponse>;
54491
54580
  /**
54492
54581
  * Update a customer on the UltraCart account.
54493
54582
  * @summary Update a customer
@@ -54757,6 +54846,22 @@ export interface CustomerApiInterface {
54757
54846
  * @memberof CustomerApiInterface
54758
54847
  */
54759
54848
  searchCustomerProfileValues(lookup_request: LookupRequest, options?: any): Promise<LookupResponse>;
54849
+ /**
54850
+ * Retrieves customers from the account by matching the search value against most customer fields. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination. This search also goes against the cache so updates should not be performed with these result objects. Always re-query the individual customer profile if you are going to make updates.
54851
+ * @summary Search for customers
54852
+ * @param {string} [search_string] Search
54853
+ * @param {string} [signup_dts_start] Signup date start
54854
+ * @param {string} [signup_dts_end] Signup date end
54855
+ * @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
54856
+ * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
54857
+ * @param {string} [_since] Fetch customers that have been created/modified since this date/time.
54858
+ * @param {string} [_sort] The sort order of the customers. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
54859
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
54860
+ * @param {*} [options] Override http request option.
54861
+ * @throws {RequiredError}
54862
+ * @memberof CustomerApiInterface
54863
+ */
54864
+ searchCustomers(search_string?: string, signup_dts_start?: string, signup_dts_end?: string, _limit?: number, _offset?: number, _since?: string, _sort?: string, _expand?: string, options?: any): Promise<CustomersResponse>;
54760
54865
  /**
54761
54866
  * Update a customer on the UltraCart account.
54762
54867
  * @summary Update a customer
@@ -55031,6 +55136,22 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
55031
55136
  * @memberof CustomerApi
55032
55137
  */
55033
55138
  searchCustomerProfileValues(lookup_request: LookupRequest, options?: any): Promise<LookupResponse>;
55139
+ /**
55140
+ * Retrieves customers from the account by matching the search value against most customer fields. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination. This search also goes against the cache so updates should not be performed with these result objects. Always re-query the individual customer profile if you are going to make updates.
55141
+ * @summary Search for customers
55142
+ * @param {string} [search_string] Search
55143
+ * @param {string} [signup_dts_start] Signup date start
55144
+ * @param {string} [signup_dts_end] Signup date end
55145
+ * @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
55146
+ * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
55147
+ * @param {string} [_since] Fetch customers that have been created/modified since this date/time.
55148
+ * @param {string} [_sort] The sort order of the customers. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
55149
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
55150
+ * @param {*} [options] Override http request option.
55151
+ * @throws {RequiredError}
55152
+ * @memberof CustomerApi
55153
+ */
55154
+ searchCustomers(search_string?: string, signup_dts_start?: string, signup_dts_end?: string, _limit?: number, _offset?: number, _since?: string, _sort?: string, _expand?: string, options?: any): Promise<CustomersResponse>;
55034
55155
  /**
55035
55156
  * Update a customer on the UltraCart account.
55036
55157
  * @summary Update a customer
package/dist/api.js CHANGED
@@ -28,10 +28,10 @@ var __extends = (this && this.__extends) || (function () {
28
28
  };
29
29
  })();
30
30
  Object.defineProperty(exports, "__esModule", { value: true });
31
- exports.ItemShippingMethod = exports.ItemShippingDestinationRestriction = exports.ItemReview = exports.ItemRestrictionItem = exports.ItemRelatedItem = exports.ItemOptionValue = exports.ItemOption = exports.ItemContentMultimedia = exports.ItemAutoOrderStep = exports.Experiment = exports.EmailPerformance = exports.EmailCommseqStep = exports.Distance = exports.Coupon = exports.ConversationWebsocketMessage = exports.ConversationWebchatQueueStatusUpdateRequest = exports.ConversationWebchatQueueStatusAgent = exports.ConversationVirtualAgentCapabilities = exports.ConversationSummary = exports.ConversationSentiment = exports.ConversationPbxVoicemailMessageSummary = exports.ConversationPbxVoicemailMessage = exports.ConversationPbxVoicemailMailbox = exports.ConversationPbxTimeBasedMapping = exports.ConversationPbxPhoneNumber = exports.ConversationPbxMenuMapping = exports.ConversationPbxMenu = exports.ConversationMessageTransportStatus = exports.ConversationMessage = exports.ConversationMcpServer = exports.ConversationEventRRWeb = exports.ConversationEngagementEquationFunction = exports.ConversationEngagement = exports.ConversationAgentProfile = exports.Conversation = exports.CheckoutHandoffRequest = exports.ChannelPartnerOrderItem = exports.ChannelPartnerOrder = exports.CartKitComponentOption = exports.CartItemOption = exports.CartItemMultimedia = exports.CartCustomerProfileCreditCard = exports.AutoOrderItemSimpleSchedule = exports.AutoOrderItem = exports.AutoOrder = exports.AffiliateLink = exports.AffiliateLedger = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = void 0;
32
- exports.CheckoutApi = exports.CheckoutApiFactory = exports.CheckoutApiFp = exports.CheckoutApiFetchParamCreator = exports.ChannelPartnerApi = exports.ChannelPartnerApiFactory = exports.ChannelPartnerApiFp = exports.ChannelPartnerApiFetchParamCreator = exports.AutoOrderApi = exports.AutoOrderApiFactory = exports.AutoOrderApiFp = exports.AutoOrderApiFetchParamCreator = exports.AffiliateApi = exports.AffiliateApiFactory = exports.AffiliateApiFp = exports.AffiliateApiFetchParamCreator = exports.WorkflowTasksRequest = exports.WorkflowTask = exports.Weight = exports.Webhook = exports.TempMultimedia = exports.ReportWebsocketEvent = exports.ReportPageVisualizationMetric = exports.ReportPageVisualization = exports.ReportFilter = exports.ReportExecuteQueriesRequest = exports.ReportDataSourceSchema = exports.ReportDataSetSchema = exports.ReportDataSetQuery = exports.ReportDataSet = exports.Report = exports.PointOfSaleReader = exports.OrderQueryBatch = exports.OrderQuery = exports.OrderPaymentECheck = exports.OrderPaymentCreditCard = exports.OrderPayment = exports.OrderItemOption = exports.OrderItem = exports.OrderFraudScore = exports.OrderFormat = exports.OrderEdiDocument = exports.OrderCurrentStageHistory = exports.OrderAutoOrder = exports.OrderAffiliateLedger = exports.Order = exports.OauthTokenResponse = exports.ItemThirdPartyEmailMarketing = exports.ItemTax = exports.ItemTag = void 0;
33
- exports.TaxApiFp = exports.TaxApiFetchParamCreator = exports.StorefrontApi = exports.StorefrontApiFactory = exports.StorefrontApiFp = exports.StorefrontApiFetchParamCreator = exports.SsoApi = exports.SsoApiFactory = exports.SsoApiFp = exports.SsoApiFetchParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiFetchParamCreator = exports.OauthApi = exports.OauthApiFactory = exports.OauthApiFp = exports.OauthApiFetchParamCreator = exports.ItemApi = exports.ItemApiFactory = exports.ItemApiFp = exports.ItemApiFetchParamCreator = exports.IntegrationLogApi = exports.IntegrationLogApiFactory = exports.IntegrationLogApiFp = exports.IntegrationLogApiFetchParamCreator = exports.GiftCertificateApi = exports.GiftCertificateApiFactory = exports.GiftCertificateApiFp = exports.GiftCertificateApiFetchParamCreator = exports.FulfillmentApi = exports.FulfillmentApiFactory = exports.FulfillmentApiFp = exports.FulfillmentApiFetchParamCreator = exports.DatawarehouseApi = exports.DatawarehouseApiFactory = exports.DatawarehouseApiFp = exports.DatawarehouseApiFetchParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiFetchParamCreator = exports.CouponApi = exports.CouponApiFactory = exports.CouponApiFp = exports.CouponApiFetchParamCreator = exports.ConversationApi = exports.ConversationApiFactory = exports.ConversationApiFp = exports.ConversationApiFetchParamCreator = void 0;
34
- exports.WorkflowApi = exports.WorkflowApiFactory = exports.WorkflowApiFp = exports.WorkflowApiFetchParamCreator = exports.WebhookApi = exports.WebhookApiFactory = exports.WebhookApiFp = exports.WebhookApiFetchParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiFetchParamCreator = exports.TaxApi = exports.TaxApiFactory = void 0;
31
+ exports.ItemShippingDestinationRestriction = exports.ItemReview = exports.ItemRestrictionItem = exports.ItemRelatedItem = exports.ItemOptionValue = exports.ItemOption = exports.ItemContentMultimedia = exports.ItemAutoOrderStep = exports.Experiment = exports.EmailPerformance = exports.EmailCommseqStep = exports.Distance = exports.CustomerQuery = exports.Coupon = exports.ConversationWebsocketMessage = exports.ConversationWebchatQueueStatusUpdateRequest = exports.ConversationWebchatQueueStatusAgent = exports.ConversationVirtualAgentCapabilities = exports.ConversationSummary = exports.ConversationSentiment = exports.ConversationPbxVoicemailMessageSummary = exports.ConversationPbxVoicemailMessage = exports.ConversationPbxVoicemailMailbox = exports.ConversationPbxTimeBasedMapping = exports.ConversationPbxPhoneNumber = exports.ConversationPbxMenuMapping = exports.ConversationPbxMenu = exports.ConversationMessageTransportStatus = exports.ConversationMessage = exports.ConversationMcpServer = exports.ConversationEventRRWeb = exports.ConversationEngagementEquationFunction = exports.ConversationEngagement = exports.ConversationAgentProfile = exports.Conversation = exports.CheckoutHandoffRequest = exports.ChannelPartnerOrderItem = exports.ChannelPartnerOrder = exports.CartKitComponentOption = exports.CartItemOption = exports.CartItemMultimedia = exports.CartCustomerProfileCreditCard = exports.AutoOrderItemSimpleSchedule = exports.AutoOrderItem = exports.AutoOrder = exports.AffiliateLink = exports.AffiliateLedger = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = void 0;
32
+ exports.CheckoutApiFactory = exports.CheckoutApiFp = exports.CheckoutApiFetchParamCreator = exports.ChannelPartnerApi = exports.ChannelPartnerApiFactory = exports.ChannelPartnerApiFp = exports.ChannelPartnerApiFetchParamCreator = exports.AutoOrderApi = exports.AutoOrderApiFactory = exports.AutoOrderApiFp = exports.AutoOrderApiFetchParamCreator = exports.AffiliateApi = exports.AffiliateApiFactory = exports.AffiliateApiFp = exports.AffiliateApiFetchParamCreator = exports.WorkflowTasksRequest = exports.WorkflowTask = exports.Weight = exports.Webhook = exports.TempMultimedia = exports.ReportWebsocketEvent = exports.ReportPageVisualizationMetric = exports.ReportPageVisualization = exports.ReportFilter = exports.ReportExecuteQueriesRequest = exports.ReportDataSourceSchema = exports.ReportDataSetSchema = exports.ReportDataSetQuery = exports.ReportDataSet = exports.Report = exports.PointOfSaleReader = exports.OrderQueryBatch = exports.OrderQuery = exports.OrderPaymentECheck = exports.OrderPaymentCreditCard = exports.OrderPayment = exports.OrderItemOption = exports.OrderItem = exports.OrderFraudScore = exports.OrderFormat = exports.OrderEdiDocument = exports.OrderCurrentStageHistory = exports.OrderAutoOrder = exports.OrderAffiliateLedger = exports.Order = exports.OauthTokenResponse = exports.ItemThirdPartyEmailMarketing = exports.ItemTax = exports.ItemTag = exports.ItemShippingMethod = void 0;
33
+ exports.TaxApiFetchParamCreator = exports.StorefrontApi = exports.StorefrontApiFactory = exports.StorefrontApiFp = exports.StorefrontApiFetchParamCreator = exports.SsoApi = exports.SsoApiFactory = exports.SsoApiFp = exports.SsoApiFetchParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiFetchParamCreator = exports.OauthApi = exports.OauthApiFactory = exports.OauthApiFp = exports.OauthApiFetchParamCreator = exports.ItemApi = exports.ItemApiFactory = exports.ItemApiFp = exports.ItemApiFetchParamCreator = exports.IntegrationLogApi = exports.IntegrationLogApiFactory = exports.IntegrationLogApiFp = exports.IntegrationLogApiFetchParamCreator = exports.GiftCertificateApi = exports.GiftCertificateApiFactory = exports.GiftCertificateApiFp = exports.GiftCertificateApiFetchParamCreator = exports.FulfillmentApi = exports.FulfillmentApiFactory = exports.FulfillmentApiFp = exports.FulfillmentApiFetchParamCreator = exports.DatawarehouseApi = exports.DatawarehouseApiFactory = exports.DatawarehouseApiFp = exports.DatawarehouseApiFetchParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiFetchParamCreator = exports.CouponApi = exports.CouponApiFactory = exports.CouponApiFp = exports.CouponApiFetchParamCreator = exports.ConversationApi = exports.ConversationApiFactory = exports.ConversationApiFp = exports.ConversationApiFetchParamCreator = exports.CheckoutApi = void 0;
34
+ exports.WorkflowApi = exports.WorkflowApiFactory = exports.WorkflowApiFp = exports.WorkflowApiFetchParamCreator = exports.WebhookApi = exports.WebhookApiFactory = exports.WebhookApiFp = exports.WebhookApiFetchParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiFetchParamCreator = exports.TaxApi = exports.TaxApiFactory = exports.TaxApiFp = void 0;
35
35
  var url = require("url");
36
36
  var portableFetch = require("portable-fetch");
37
37
  var BASE_PATH = "https://secure.ultracart.com/rest/v2".replace(/\/+$/, "");
@@ -887,6 +887,22 @@ var Coupon;
887
887
  UsableByEnum[UsableByEnum["OncePerNewCustomerForItem"] = 'OncePerNewCustomerForItem'] = "OncePerNewCustomerForItem";
888
888
  })(UsableByEnum = Coupon.UsableByEnum || (Coupon.UsableByEnum = {}));
889
889
  })(Coupon = exports.Coupon || (exports.Coupon = {}));
890
+ /**
891
+ * @export
892
+ * @namespace CustomerQuery
893
+ */
894
+ var CustomerQuery;
895
+ (function (CustomerQuery) {
896
+ /**
897
+ * @export
898
+ * @enum {string}
899
+ */
900
+ var QueryTargetEnum;
901
+ (function (QueryTargetEnum) {
902
+ QueryTargetEnum[QueryTargetEnum["Origin"] = 'origin'] = "Origin";
903
+ QueryTargetEnum[QueryTargetEnum["Cache"] = 'cache'] = "Cache";
904
+ })(QueryTargetEnum = CustomerQuery.QueryTargetEnum || (CustomerQuery.QueryTargetEnum = {}));
905
+ })(CustomerQuery = exports.CustomerQuery || (exports.CustomerQuery = {}));
890
906
  /**
891
907
  * @export
892
908
  * @namespace Distance
@@ -18976,6 +18992,78 @@ var CustomerApiFetchParamCreator = function (configuration) {
18976
18992
  options: localVarRequestOptions,
18977
18993
  };
18978
18994
  },
18995
+ /**
18996
+ * Retrieves customers from the account by matching the search value against most customer fields. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination. This search also goes against the cache so updates should not be performed with these result objects. Always re-query the individual customer profile if you are going to make updates.
18997
+ * @summary Search for customers
18998
+ * @param {string} [search_string] Search
18999
+ * @param {string} [signup_dts_start] Signup date start
19000
+ * @param {string} [signup_dts_end] Signup date end
19001
+ * @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
19002
+ * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
19003
+ * @param {string} [_since] Fetch customers that have been created/modified since this date/time.
19004
+ * @param {string} [_sort] The sort order of the customers. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
19005
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
19006
+ * @param {*} [options] Override http request option.
19007
+ * @throws {RequiredError}
19008
+ */
19009
+ searchCustomers: function (search_string, signup_dts_start, signup_dts_end, _limit, _offset, _since, _sort, _expand, options) {
19010
+ if (options === void 0) { options = {}; }
19011
+ var localVarPath = "/customer/customers/search";
19012
+ var localVarUrlObj = url.parse(localVarPath, true);
19013
+ var localVarRequestOptions = Object.assign({ method: 'GET' }, options);
19014
+ var localVarHeaderParameter = {};
19015
+ var localVarQueryParameter = {};
19016
+ if (configuration && configuration.apiVersion) {
19017
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
19018
+ }
19019
+ // authentication ultraCartOauth required
19020
+ // oauth required
19021
+ if (configuration && configuration.accessToken) {
19022
+ var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
19023
+ ? configuration.accessToken("ultraCartOauth", ["customer_read"])
19024
+ : configuration.accessToken;
19025
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
19026
+ }
19027
+ // authentication ultraCartSimpleApiKey required
19028
+ if (configuration && configuration.apiKey) {
19029
+ var localVarApiKeyValue = typeof configuration.apiKey === 'function'
19030
+ ? configuration.apiKey("x-ultracart-simple-key")
19031
+ : configuration.apiKey;
19032
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
19033
+ }
19034
+ if (search_string !== undefined) {
19035
+ localVarQueryParameter['search_string'] = search_string;
19036
+ }
19037
+ if (signup_dts_start !== undefined) {
19038
+ localVarQueryParameter['signup_dts_start'] = signup_dts_start;
19039
+ }
19040
+ if (signup_dts_end !== undefined) {
19041
+ localVarQueryParameter['signup_dts_end'] = signup_dts_end;
19042
+ }
19043
+ if (_limit !== undefined) {
19044
+ localVarQueryParameter['_limit'] = _limit;
19045
+ }
19046
+ if (_offset !== undefined) {
19047
+ localVarQueryParameter['_offset'] = _offset;
19048
+ }
19049
+ if (_since !== undefined) {
19050
+ localVarQueryParameter['_since'] = _since;
19051
+ }
19052
+ if (_sort !== undefined) {
19053
+ localVarQueryParameter['_sort'] = _sort;
19054
+ }
19055
+ if (_expand !== undefined) {
19056
+ localVarQueryParameter['_expand'] = _expand;
19057
+ }
19058
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
19059
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
19060
+ delete localVarUrlObj.search;
19061
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
19062
+ return {
19063
+ url: url.format(localVarUrlObj),
19064
+ options: localVarRequestOptions,
19065
+ };
19066
+ },
18979
19067
  /**
18980
19068
  * Update a customer on the UltraCart account.
18981
19069
  * @summary Update a customer
@@ -19690,6 +19778,35 @@ var CustomerApiFp = function (configuration) {
19690
19778
  });
19691
19779
  };
19692
19780
  },
19781
+ /**
19782
+ * Retrieves customers from the account by matching the search value against most customer fields. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination. This search also goes against the cache so updates should not be performed with these result objects. Always re-query the individual customer profile if you are going to make updates.
19783
+ * @summary Search for customers
19784
+ * @param {string} [search_string] Search
19785
+ * @param {string} [signup_dts_start] Signup date start
19786
+ * @param {string} [signup_dts_end] Signup date end
19787
+ * @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
19788
+ * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
19789
+ * @param {string} [_since] Fetch customers that have been created/modified since this date/time.
19790
+ * @param {string} [_sort] The sort order of the customers. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
19791
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
19792
+ * @param {*} [options] Override http request option.
19793
+ * @throws {RequiredError}
19794
+ */
19795
+ searchCustomers: function (search_string, signup_dts_start, signup_dts_end, _limit, _offset, _since, _sort, _expand, options) {
19796
+ var localVarFetchArgs = (0, exports.CustomerApiFetchParamCreator)(configuration).searchCustomers(search_string, signup_dts_start, signup_dts_end, _limit, _offset, _since, _sort, _expand, options);
19797
+ return function (fetch, basePath) {
19798
+ if (fetch === void 0) { fetch = portableFetch; }
19799
+ if (basePath === void 0) { basePath = BASE_PATH; }
19800
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
19801
+ if (response.status >= 200 && response.status < 300) {
19802
+ return response.json();
19803
+ }
19804
+ else {
19805
+ throw response;
19806
+ }
19807
+ });
19808
+ };
19809
+ },
19693
19810
  /**
19694
19811
  * Update a customer on the UltraCart account.
19695
19812
  * @summary Update a customer
@@ -20037,6 +20154,23 @@ var CustomerApiFactory = function (configuration, fetch, basePath) {
20037
20154
  searchCustomerProfileValues: function (lookup_request, options) {
20038
20155
  return (0, exports.CustomerApiFp)(configuration).searchCustomerProfileValues(lookup_request, options)(fetch, basePath);
20039
20156
  },
20157
+ /**
20158
+ * Retrieves customers from the account by matching the search value against most customer fields. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination. This search also goes against the cache so updates should not be performed with these result objects. Always re-query the individual customer profile if you are going to make updates.
20159
+ * @summary Search for customers
20160
+ * @param {string} [search_string] Search
20161
+ * @param {string} [signup_dts_start] Signup date start
20162
+ * @param {string} [signup_dts_end] Signup date end
20163
+ * @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
20164
+ * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
20165
+ * @param {string} [_since] Fetch customers that have been created/modified since this date/time.
20166
+ * @param {string} [_sort] The sort order of the customers. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
20167
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
20168
+ * @param {*} [options] Override http request option.
20169
+ * @throws {RequiredError}
20170
+ */
20171
+ searchCustomers: function (search_string, signup_dts_start, signup_dts_end, _limit, _offset, _since, _sort, _expand, options) {
20172
+ return (0, exports.CustomerApiFp)(configuration).searchCustomers(search_string, signup_dts_start, signup_dts_end, _limit, _offset, _since, _sort, _expand, options)(fetch, basePath);
20173
+ },
20040
20174
  /**
20041
20175
  * Update a customer on the UltraCart account.
20042
20176
  * @summary Update a customer
@@ -20361,6 +20495,24 @@ var CustomerApi = /** @class */ (function (_super) {
20361
20495
  CustomerApi.prototype.searchCustomerProfileValues = function (lookup_request, options) {
20362
20496
  return (0, exports.CustomerApiFp)(this.configuration).searchCustomerProfileValues(lookup_request, options)(this.fetch, this.basePath);
20363
20497
  };
20498
+ /**
20499
+ * Retrieves customers from the account by matching the search value against most customer fields. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination. This search also goes against the cache so updates should not be performed with these result objects. Always re-query the individual customer profile if you are going to make updates.
20500
+ * @summary Search for customers
20501
+ * @param {string} [search_string] Search
20502
+ * @param {string} [signup_dts_start] Signup date start
20503
+ * @param {string} [signup_dts_end] Signup date end
20504
+ * @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
20505
+ * @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
20506
+ * @param {string} [_since] Fetch customers that have been created/modified since this date/time.
20507
+ * @param {string} [_sort] The sort order of the customers. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
20508
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
20509
+ * @param {*} [options] Override http request option.
20510
+ * @throws {RequiredError}
20511
+ * @memberof CustomerApi
20512
+ */
20513
+ CustomerApi.prototype.searchCustomers = function (search_string, signup_dts_start, signup_dts_end, _limit, _offset, _since, _sort, _expand, options) {
20514
+ return (0, exports.CustomerApiFp)(this.configuration).searchCustomers(search_string, signup_dts_start, signup_dts_end, _limit, _offset, _since, _sort, _expand, options)(this.fetch, this.basePath);
20515
+ };
20364
20516
  /**
20365
20517
  * Update a customer on the UltraCart account.
20366
20518
  * @summary Update a customer
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "3.11.34",
3
+ "version": "3.11.36",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "keywords": [