@closerplatform/spinner-openapi 0.12.1152 → 0.12.1155
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 +1 -58
- package/dist/api.js +0 -87
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -781,25 +781,6 @@ export interface Agents {
|
|
|
781
781
|
*/
|
|
782
782
|
agentsIds: Array<string>;
|
|
783
783
|
}
|
|
784
|
-
/**
|
|
785
|
-
*
|
|
786
|
-
* @export
|
|
787
|
-
* @interface AgreementForm
|
|
788
|
-
*/
|
|
789
|
-
export interface AgreementForm {
|
|
790
|
-
/**
|
|
791
|
-
*
|
|
792
|
-
* @type {boolean}
|
|
793
|
-
* @memberof AgreementForm
|
|
794
|
-
*/
|
|
795
|
-
agree: boolean;
|
|
796
|
-
/**
|
|
797
|
-
*
|
|
798
|
-
* @type {string}
|
|
799
|
-
* @memberof AgreementForm
|
|
800
|
-
*/
|
|
801
|
-
orgId: string;
|
|
802
|
-
}
|
|
803
784
|
/**
|
|
804
785
|
*
|
|
805
786
|
* @export
|
|
@@ -6951,8 +6932,7 @@ export declare enum UserRole {
|
|
|
6951
6932
|
ADVISER = "ADVISER",
|
|
6952
6933
|
BOT = "BOT",
|
|
6953
6934
|
LEAD = "LEAD",
|
|
6954
|
-
ORGANIZATION = "ORGANIZATION"
|
|
6955
|
-
MASTER = "MASTER"
|
|
6935
|
+
ORGANIZATION = "ORGANIZATION"
|
|
6956
6936
|
}
|
|
6957
6937
|
/**
|
|
6958
6938
|
*
|
|
@@ -15103,15 +15083,6 @@ export declare const UsersApiFetchParamCreator: (configuration?: Configuration)
|
|
|
15103
15083
|
* @throws {RequiredError}
|
|
15104
15084
|
*/
|
|
15105
15085
|
setAgentProfile(body: AgentProfileForm, options?: any): FetchArgs;
|
|
15106
|
-
/**
|
|
15107
|
-
*
|
|
15108
|
-
* @summary Set agreement with timestamp
|
|
15109
|
-
* @param {AgreementForm} body
|
|
15110
|
-
* @param {string} id
|
|
15111
|
-
* @param {*} [options] Override http request option.
|
|
15112
|
-
* @throws {RequiredError}
|
|
15113
|
-
*/
|
|
15114
|
-
setAgreement(body: AgreementForm, id: string, options?: any): FetchArgs;
|
|
15115
15086
|
/**
|
|
15116
15087
|
*
|
|
15117
15088
|
* @summary Authorize guest with oauth login hint token
|
|
@@ -15429,15 +15400,6 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
15429
15400
|
* @throws {RequiredError}
|
|
15430
15401
|
*/
|
|
15431
15402
|
setAgentProfile(body: AgentProfileForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
15432
|
-
/**
|
|
15433
|
-
*
|
|
15434
|
-
* @summary Set agreement with timestamp
|
|
15435
|
-
* @param {AgreementForm} body
|
|
15436
|
-
* @param {string} id
|
|
15437
|
-
* @param {*} [options] Override http request option.
|
|
15438
|
-
* @throws {RequiredError}
|
|
15439
|
-
*/
|
|
15440
|
-
setAgreement(body: AgreementForm, id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
15441
15403
|
/**
|
|
15442
15404
|
*
|
|
15443
15405
|
* @summary Authorize guest with oauth login hint token
|
|
@@ -15755,15 +15717,6 @@ export declare const UsersApiFactory: (configuration?: Configuration, fetch?: Fe
|
|
|
15755
15717
|
* @throws {RequiredError}
|
|
15756
15718
|
*/
|
|
15757
15719
|
setAgentProfile(body: AgentProfileForm, options?: any): Promise<Response>;
|
|
15758
|
-
/**
|
|
15759
|
-
*
|
|
15760
|
-
* @summary Set agreement with timestamp
|
|
15761
|
-
* @param {AgreementForm} body
|
|
15762
|
-
* @param {string} id
|
|
15763
|
-
* @param {*} [options] Override http request option.
|
|
15764
|
-
* @throws {RequiredError}
|
|
15765
|
-
*/
|
|
15766
|
-
setAgreement(body: AgreementForm, id: string, options?: any): Promise<Response>;
|
|
15767
15720
|
/**
|
|
15768
15721
|
*
|
|
15769
15722
|
* @summary Authorize guest with oauth login hint token
|
|
@@ -16119,16 +16072,6 @@ export declare class UsersApi extends BaseAPI {
|
|
|
16119
16072
|
* @memberof UsersApi
|
|
16120
16073
|
*/
|
|
16121
16074
|
setAgentProfile(body: AgentProfileForm, options?: any): Promise<Response>;
|
|
16122
|
-
/**
|
|
16123
|
-
*
|
|
16124
|
-
* @summary Set agreement with timestamp
|
|
16125
|
-
* @param {AgreementForm} body
|
|
16126
|
-
* @param {string} id
|
|
16127
|
-
* @param {*} [options] Override http request option.
|
|
16128
|
-
* @throws {RequiredError}
|
|
16129
|
-
* @memberof UsersApi
|
|
16130
|
-
*/
|
|
16131
|
-
setAgreement(body: AgreementForm, id: string, options?: any): Promise<Response>;
|
|
16132
16075
|
/**
|
|
16133
16076
|
*
|
|
16134
16077
|
* @summary Authorize guest with oauth login hint token
|
package/dist/api.js
CHANGED
|
@@ -345,7 +345,6 @@ var UserRole;
|
|
|
345
345
|
UserRole["BOT"] = "BOT";
|
|
346
346
|
UserRole["LEAD"] = "LEAD";
|
|
347
347
|
UserRole["ORGANIZATION"] = "ORGANIZATION";
|
|
348
|
-
UserRole["MASTER"] = "MASTER";
|
|
349
348
|
})(UserRole = exports.UserRole || (exports.UserRole = {}));
|
|
350
349
|
/**
|
|
351
350
|
* @export
|
|
@@ -18174,48 +18173,6 @@ const UsersApiFetchParamCreator = function (configuration) {
|
|
|
18174
18173
|
options: localVarRequestOptions,
|
|
18175
18174
|
};
|
|
18176
18175
|
},
|
|
18177
|
-
/**
|
|
18178
|
-
*
|
|
18179
|
-
* @summary Set agreement with timestamp
|
|
18180
|
-
* @param {AgreementForm} body
|
|
18181
|
-
* @param {string} id
|
|
18182
|
-
* @param {*} [options] Override http request option.
|
|
18183
|
-
* @throws {RequiredError}
|
|
18184
|
-
*/
|
|
18185
|
-
setAgreement(body, id, options = {}) {
|
|
18186
|
-
// verify required parameter 'body' is not null or undefined
|
|
18187
|
-
if (body === null || body === undefined) {
|
|
18188
|
-
throw new RequiredError('body', 'Required parameter body was null or undefined when calling setAgreement.');
|
|
18189
|
-
}
|
|
18190
|
-
// verify required parameter 'id' is not null or undefined
|
|
18191
|
-
if (id === null || id === undefined) {
|
|
18192
|
-
throw new RequiredError('id', 'Required parameter id was null or undefined when calling setAgreement.');
|
|
18193
|
-
}
|
|
18194
|
-
const localVarPath = `/users/guest/{id}/agreement`
|
|
18195
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
18196
|
-
const localVarUrlObj = url.parse(localVarPath, true);
|
|
18197
|
-
const localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
|
|
18198
|
-
const localVarHeaderParameter = {};
|
|
18199
|
-
const localVarQueryParameter = {};
|
|
18200
|
-
// authentication apiKey required
|
|
18201
|
-
if (configuration && configuration.apiKey) {
|
|
18202
|
-
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
18203
|
-
? configuration.apiKey("X-Api-Key")
|
|
18204
|
-
: configuration.apiKey;
|
|
18205
|
-
localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
|
|
18206
|
-
}
|
|
18207
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
18208
|
-
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
18209
|
-
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
18210
|
-
delete localVarUrlObj.search;
|
|
18211
|
-
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
18212
|
-
const needsSerialization = ("AgreementForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
18213
|
-
localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
|
|
18214
|
-
return {
|
|
18215
|
-
url: url.format(localVarUrlObj),
|
|
18216
|
-
options: localVarRequestOptions,
|
|
18217
|
-
};
|
|
18218
|
-
},
|
|
18219
18176
|
/**
|
|
18220
18177
|
*
|
|
18221
18178
|
* @summary Authorize guest with oauth login hint token
|
|
@@ -19087,27 +19044,6 @@ const UsersApiFp = function (configuration) {
|
|
|
19087
19044
|
});
|
|
19088
19045
|
};
|
|
19089
19046
|
},
|
|
19090
|
-
/**
|
|
19091
|
-
*
|
|
19092
|
-
* @summary Set agreement with timestamp
|
|
19093
|
-
* @param {AgreementForm} body
|
|
19094
|
-
* @param {string} id
|
|
19095
|
-
* @param {*} [options] Override http request option.
|
|
19096
|
-
* @throws {RequiredError}
|
|
19097
|
-
*/
|
|
19098
|
-
setAgreement(body, id, options) {
|
|
19099
|
-
const localVarFetchArgs = (0, exports.UsersApiFetchParamCreator)(configuration).setAgreement(body, id, options);
|
|
19100
|
-
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
19101
|
-
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
19102
|
-
if (response.status >= 200 && response.status < 300) {
|
|
19103
|
-
return response;
|
|
19104
|
-
}
|
|
19105
|
-
else {
|
|
19106
|
-
throw response;
|
|
19107
|
-
}
|
|
19108
|
-
});
|
|
19109
|
-
};
|
|
19110
|
-
},
|
|
19111
19047
|
/**
|
|
19112
19048
|
*
|
|
19113
19049
|
* @summary Authorize guest with oauth login hint token
|
|
@@ -19548,17 +19484,6 @@ const UsersApiFactory = function (configuration, fetch, basePath) {
|
|
|
19548
19484
|
setAgentProfile(body, options) {
|
|
19549
19485
|
return (0, exports.UsersApiFp)(configuration).setAgentProfile(body, options)(fetch, basePath);
|
|
19550
19486
|
},
|
|
19551
|
-
/**
|
|
19552
|
-
*
|
|
19553
|
-
* @summary Set agreement with timestamp
|
|
19554
|
-
* @param {AgreementForm} body
|
|
19555
|
-
* @param {string} id
|
|
19556
|
-
* @param {*} [options] Override http request option.
|
|
19557
|
-
* @throws {RequiredError}
|
|
19558
|
-
*/
|
|
19559
|
-
setAgreement(body, id, options) {
|
|
19560
|
-
return (0, exports.UsersApiFp)(configuration).setAgreement(body, id, options)(fetch, basePath);
|
|
19561
|
-
},
|
|
19562
19487
|
/**
|
|
19563
19488
|
*
|
|
19564
19489
|
* @summary Authorize guest with oauth login hint token
|
|
@@ -19996,18 +19921,6 @@ class UsersApi extends BaseAPI {
|
|
|
19996
19921
|
setAgentProfile(body, options) {
|
|
19997
19922
|
return (0, exports.UsersApiFp)(this.configuration).setAgentProfile(body, options)(this.fetch, this.basePath);
|
|
19998
19923
|
}
|
|
19999
|
-
/**
|
|
20000
|
-
*
|
|
20001
|
-
* @summary Set agreement with timestamp
|
|
20002
|
-
* @param {AgreementForm} body
|
|
20003
|
-
* @param {string} id
|
|
20004
|
-
* @param {*} [options] Override http request option.
|
|
20005
|
-
* @throws {RequiredError}
|
|
20006
|
-
* @memberof UsersApi
|
|
20007
|
-
*/
|
|
20008
|
-
setAgreement(body, id, options) {
|
|
20009
|
-
return (0, exports.UsersApiFp)(this.configuration).setAgreement(body, id, options)(this.fetch, this.basePath);
|
|
20010
|
-
}
|
|
20011
19924
|
/**
|
|
20012
19925
|
*
|
|
20013
19926
|
* @summary Authorize guest with oauth login hint token
|