@closerplatform/spinner-openapi 0.12.58 → 0.12.59
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/dist/api.d.ts +37 -4
- package/dist/api.js +83 -8
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -8486,7 +8486,7 @@ export declare const CustomersApiFetchParamCreator: (configuration?: Configurati
|
|
|
8486
8486
|
* @param {*} [options] Override http request option.
|
|
8487
8487
|
* @throws {RequiredError}
|
|
8488
8488
|
*/
|
|
8489
|
-
|
|
8489
|
+
deleteCustomerDeprecated(customerId: string, options?: any): FetchArgs;
|
|
8490
8490
|
/**
|
|
8491
8491
|
*
|
|
8492
8492
|
* @summary Get list of customer addresses
|
|
@@ -8625,7 +8625,7 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
|
|
|
8625
8625
|
* @param {*} [options] Override http request option.
|
|
8626
8626
|
* @throws {RequiredError}
|
|
8627
8627
|
*/
|
|
8628
|
-
|
|
8628
|
+
deleteCustomerDeprecated(customerId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
8629
8629
|
/**
|
|
8630
8630
|
*
|
|
8631
8631
|
* @summary Get list of customer addresses
|
|
@@ -8764,7 +8764,7 @@ export declare const CustomersApiFactory: (configuration?: Configuration, fetch?
|
|
|
8764
8764
|
* @param {*} [options] Override http request option.
|
|
8765
8765
|
* @throws {RequiredError}
|
|
8766
8766
|
*/
|
|
8767
|
-
|
|
8767
|
+
deleteCustomerDeprecated(customerId: string, options?: any): Promise<Response>;
|
|
8768
8768
|
/**
|
|
8769
8769
|
*
|
|
8770
8770
|
* @summary Get list of customer addresses
|
|
@@ -8913,7 +8913,7 @@ export declare class CustomersApi extends BaseAPI {
|
|
|
8913
8913
|
* @throws {RequiredError}
|
|
8914
8914
|
* @memberof CustomersApi
|
|
8915
8915
|
*/
|
|
8916
|
-
|
|
8916
|
+
deleteCustomerDeprecated(customerId: string, options?: any): Promise<Response>;
|
|
8917
8917
|
/**
|
|
8918
8918
|
*
|
|
8919
8919
|
* @summary Get list of customer addresses
|
|
@@ -14442,6 +14442,14 @@ export declare const UsersApiFetchParamCreator: (configuration?: Configuration)
|
|
|
14442
14442
|
* @throws {RequiredError}
|
|
14443
14443
|
*/
|
|
14444
14444
|
deleteAgentAvatar(options?: any): FetchArgs;
|
|
14445
|
+
/**
|
|
14446
|
+
*
|
|
14447
|
+
* @summary Anonymize customer profile
|
|
14448
|
+
* @param {string} customerId
|
|
14449
|
+
* @param {*} [options] Override http request option.
|
|
14450
|
+
* @throws {RequiredError}
|
|
14451
|
+
*/
|
|
14452
|
+
deleteCustomer(customerId: string, options?: any): FetchArgs;
|
|
14445
14453
|
/**
|
|
14446
14454
|
*
|
|
14447
14455
|
* @summary Generate avatar upload URL.
|
|
@@ -14834,6 +14842,14 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
14834
14842
|
* @throws {RequiredError}
|
|
14835
14843
|
*/
|
|
14836
14844
|
deleteAgentAvatar(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
14845
|
+
/**
|
|
14846
|
+
*
|
|
14847
|
+
* @summary Anonymize customer profile
|
|
14848
|
+
* @param {string} customerId
|
|
14849
|
+
* @param {*} [options] Override http request option.
|
|
14850
|
+
* @throws {RequiredError}
|
|
14851
|
+
*/
|
|
14852
|
+
deleteCustomer(customerId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
14837
14853
|
/**
|
|
14838
14854
|
*
|
|
14839
14855
|
* @summary Generate avatar upload URL.
|
|
@@ -15226,6 +15242,14 @@ export declare const UsersApiFactory: (configuration?: Configuration, fetch?: Fe
|
|
|
15226
15242
|
* @throws {RequiredError}
|
|
15227
15243
|
*/
|
|
15228
15244
|
deleteAgentAvatar(options?: any): Promise<Response>;
|
|
15245
|
+
/**
|
|
15246
|
+
*
|
|
15247
|
+
* @summary Anonymize customer profile
|
|
15248
|
+
* @param {string} customerId
|
|
15249
|
+
* @param {*} [options] Override http request option.
|
|
15250
|
+
* @throws {RequiredError}
|
|
15251
|
+
*/
|
|
15252
|
+
deleteCustomer(customerId: string, options?: any): Promise<Response>;
|
|
15229
15253
|
/**
|
|
15230
15254
|
*
|
|
15231
15255
|
* @summary Generate avatar upload URL.
|
|
@@ -15630,6 +15654,15 @@ export declare class UsersApi extends BaseAPI {
|
|
|
15630
15654
|
* @memberof UsersApi
|
|
15631
15655
|
*/
|
|
15632
15656
|
deleteAgentAvatar(options?: any): Promise<Response>;
|
|
15657
|
+
/**
|
|
15658
|
+
*
|
|
15659
|
+
* @summary Anonymize customer profile
|
|
15660
|
+
* @param {string} customerId
|
|
15661
|
+
* @param {*} [options] Override http request option.
|
|
15662
|
+
* @throws {RequiredError}
|
|
15663
|
+
* @memberof UsersApi
|
|
15664
|
+
*/
|
|
15665
|
+
deleteCustomer(customerId: string, options?: any): Promise<Response>;
|
|
15633
15666
|
/**
|
|
15634
15667
|
*
|
|
15635
15668
|
* @summary Generate avatar upload URL.
|
package/dist/api.js
CHANGED
|
@@ -4035,10 +4035,10 @@ exports.CustomersApiFetchParamCreator = function (configuration) {
|
|
|
4035
4035
|
* @param {*} [options] Override http request option.
|
|
4036
4036
|
* @throws {RequiredError}
|
|
4037
4037
|
*/
|
|
4038
|
-
|
|
4038
|
+
deleteCustomerDeprecated(customerId, options = {}) {
|
|
4039
4039
|
// verify required parameter 'customerId' is not null or undefined
|
|
4040
4040
|
if (customerId === null || customerId === undefined) {
|
|
4041
|
-
throw new RequiredError('customerId', 'Required parameter customerId was null or undefined when calling
|
|
4041
|
+
throw new RequiredError('customerId', 'Required parameter customerId was null or undefined when calling deleteCustomerDeprecated.');
|
|
4042
4042
|
}
|
|
4043
4043
|
const localVarPath = `/customers/customer/{customerId}`
|
|
4044
4044
|
.replace(`{${"customerId"}}`, encodeURIComponent(String(customerId)));
|
|
@@ -4508,8 +4508,8 @@ exports.CustomersApiFp = function (configuration) {
|
|
|
4508
4508
|
* @param {*} [options] Override http request option.
|
|
4509
4509
|
* @throws {RequiredError}
|
|
4510
4510
|
*/
|
|
4511
|
-
|
|
4512
|
-
const localVarFetchArgs = exports.CustomersApiFetchParamCreator(configuration).
|
|
4511
|
+
deleteCustomerDeprecated(customerId, options) {
|
|
4512
|
+
const localVarFetchArgs = exports.CustomersApiFetchParamCreator(configuration).deleteCustomerDeprecated(customerId, options);
|
|
4513
4513
|
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
4514
4514
|
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
4515
4515
|
if (response.status >= 200 && response.status < 300) {
|
|
@@ -4783,8 +4783,8 @@ exports.CustomersApiFactory = function (configuration, fetch, basePath) {
|
|
|
4783
4783
|
* @param {*} [options] Override http request option.
|
|
4784
4784
|
* @throws {RequiredError}
|
|
4785
4785
|
*/
|
|
4786
|
-
|
|
4787
|
-
return exports.CustomersApiFp(configuration).
|
|
4786
|
+
deleteCustomerDeprecated(customerId, options) {
|
|
4787
|
+
return exports.CustomersApiFp(configuration).deleteCustomerDeprecated(customerId, options)(fetch, basePath);
|
|
4788
4788
|
},
|
|
4789
4789
|
/**
|
|
4790
4790
|
*
|
|
@@ -4967,8 +4967,8 @@ class CustomersApi extends BaseAPI {
|
|
|
4967
4967
|
* @throws {RequiredError}
|
|
4968
4968
|
* @memberof CustomersApi
|
|
4969
4969
|
*/
|
|
4970
|
-
|
|
4971
|
-
return exports.CustomersApiFp(this.configuration).
|
|
4970
|
+
deleteCustomerDeprecated(customerId, options) {
|
|
4971
|
+
return exports.CustomersApiFp(this.configuration).deleteCustomerDeprecated(customerId, options)(this.fetch, this.basePath);
|
|
4972
4972
|
}
|
|
4973
4973
|
/**
|
|
4974
4974
|
*
|
|
@@ -17069,6 +17069,40 @@ exports.UsersApiFetchParamCreator = function (configuration) {
|
|
|
17069
17069
|
options: localVarRequestOptions,
|
|
17070
17070
|
};
|
|
17071
17071
|
},
|
|
17072
|
+
/**
|
|
17073
|
+
*
|
|
17074
|
+
* @summary Anonymize customer profile
|
|
17075
|
+
* @param {string} customerId
|
|
17076
|
+
* @param {*} [options] Override http request option.
|
|
17077
|
+
* @throws {RequiredError}
|
|
17078
|
+
*/
|
|
17079
|
+
deleteCustomer(customerId, options = {}) {
|
|
17080
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
17081
|
+
if (customerId === null || customerId === undefined) {
|
|
17082
|
+
throw new RequiredError('customerId', 'Required parameter customerId was null or undefined when calling deleteCustomer.');
|
|
17083
|
+
}
|
|
17084
|
+
const localVarPath = `/users/guest/{customerId}`
|
|
17085
|
+
.replace(`{${"customerId"}}`, encodeURIComponent(String(customerId)));
|
|
17086
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
17087
|
+
const localVarRequestOptions = Object.assign({ method: 'DELETE' }, options);
|
|
17088
|
+
const localVarHeaderParameter = {};
|
|
17089
|
+
const localVarQueryParameter = {};
|
|
17090
|
+
// authentication apiKey required
|
|
17091
|
+
if (configuration && configuration.apiKey) {
|
|
17092
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
17093
|
+
? configuration.apiKey("X-Api-Key")
|
|
17094
|
+
: configuration.apiKey;
|
|
17095
|
+
localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
|
|
17096
|
+
}
|
|
17097
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
17098
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
17099
|
+
delete localVarUrlObj.search;
|
|
17100
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
17101
|
+
return {
|
|
17102
|
+
url: url.format(localVarUrlObj),
|
|
17103
|
+
options: localVarRequestOptions,
|
|
17104
|
+
};
|
|
17105
|
+
},
|
|
17072
17106
|
/**
|
|
17073
17107
|
*
|
|
17074
17108
|
* @summary Generate avatar upload URL.
|
|
@@ -18695,6 +18729,26 @@ exports.UsersApiFp = function (configuration) {
|
|
|
18695
18729
|
});
|
|
18696
18730
|
};
|
|
18697
18731
|
},
|
|
18732
|
+
/**
|
|
18733
|
+
*
|
|
18734
|
+
* @summary Anonymize customer profile
|
|
18735
|
+
* @param {string} customerId
|
|
18736
|
+
* @param {*} [options] Override http request option.
|
|
18737
|
+
* @throws {RequiredError}
|
|
18738
|
+
*/
|
|
18739
|
+
deleteCustomer(customerId, options) {
|
|
18740
|
+
const localVarFetchArgs = exports.UsersApiFetchParamCreator(configuration).deleteCustomer(customerId, options);
|
|
18741
|
+
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
18742
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
18743
|
+
if (response.status >= 200 && response.status < 300) {
|
|
18744
|
+
return response;
|
|
18745
|
+
}
|
|
18746
|
+
else {
|
|
18747
|
+
throw response;
|
|
18748
|
+
}
|
|
18749
|
+
});
|
|
18750
|
+
};
|
|
18751
|
+
},
|
|
18698
18752
|
/**
|
|
18699
18753
|
*
|
|
18700
18754
|
* @summary Generate avatar upload URL.
|
|
@@ -19565,6 +19619,16 @@ exports.UsersApiFactory = function (configuration, fetch, basePath) {
|
|
|
19565
19619
|
deleteAgentAvatar(options) {
|
|
19566
19620
|
return exports.UsersApiFp(configuration).deleteAgentAvatar(options)(fetch, basePath);
|
|
19567
19621
|
},
|
|
19622
|
+
/**
|
|
19623
|
+
*
|
|
19624
|
+
* @summary Anonymize customer profile
|
|
19625
|
+
* @param {string} customerId
|
|
19626
|
+
* @param {*} [options] Override http request option.
|
|
19627
|
+
* @throws {RequiredError}
|
|
19628
|
+
*/
|
|
19629
|
+
deleteCustomer(customerId, options) {
|
|
19630
|
+
return exports.UsersApiFp(configuration).deleteCustomer(customerId, options)(fetch, basePath);
|
|
19631
|
+
},
|
|
19568
19632
|
/**
|
|
19569
19633
|
*
|
|
19570
19634
|
* @summary Generate avatar upload URL.
|
|
@@ -20066,6 +20130,17 @@ class UsersApi extends BaseAPI {
|
|
|
20066
20130
|
deleteAgentAvatar(options) {
|
|
20067
20131
|
return exports.UsersApiFp(this.configuration).deleteAgentAvatar(options)(this.fetch, this.basePath);
|
|
20068
20132
|
}
|
|
20133
|
+
/**
|
|
20134
|
+
*
|
|
20135
|
+
* @summary Anonymize customer profile
|
|
20136
|
+
* @param {string} customerId
|
|
20137
|
+
* @param {*} [options] Override http request option.
|
|
20138
|
+
* @throws {RequiredError}
|
|
20139
|
+
* @memberof UsersApi
|
|
20140
|
+
*/
|
|
20141
|
+
deleteCustomer(customerId, options) {
|
|
20142
|
+
return exports.UsersApiFp(this.configuration).deleteCustomer(customerId, options)(this.fetch, this.basePath);
|
|
20143
|
+
}
|
|
20069
20144
|
/**
|
|
20070
20145
|
*
|
|
20071
20146
|
* @summary Generate avatar upload URL.
|