@gizone/rrs-client 4.2.0-alpha.243 → 4.2.0-alpha.245
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/.openapi-generator/FILES +1 -0
- package/api.ts +1 -0
- package/apis/web-hook-api.ts +152 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/apis/web-hook-api.d.ts +87 -0
- package/dist/apis/web-hook-api.js +140 -0
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/apis/web-hook-api.d.ts +87 -0
- package/dist/esm/apis/web-hook-api.js +133 -0
- package/dist/esm/models/get-user-wx200-response.d.ts +4 -4
- package/dist/esm/models/ipage-access-vo.d.ts +6 -6
- package/dist/models/get-user-wx200-response.d.ts +4 -4
- package/dist/models/ipage-access-vo.d.ts +6 -6
- package/models/get-user-wx200-response.ts +4 -4
- package/models/ipage-access-vo.ts +6 -6
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/api.ts
CHANGED
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OpenAPI definition
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { JsonResultVoid } from '../models';
|
|
26
|
+
/**
|
|
27
|
+
* WebHookApi - axios parameter creator
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
export const WebHookApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
31
|
+
return {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary 接收SRM园区合同变更通知
|
|
35
|
+
* @param {string} parkCode 园区编码
|
|
36
|
+
* @param {*} [options] Override http request option.
|
|
37
|
+
* @throws {RequiredError}
|
|
38
|
+
*/
|
|
39
|
+
srmParkContractChange: async (parkCode: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40
|
+
// verify required parameter 'parkCode' is not null or undefined
|
|
41
|
+
assertParamExists('srmParkContractChange', 'parkCode', parkCode)
|
|
42
|
+
const localVarPath = `/webhook/srm/parkContract/change`;
|
|
43
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
44
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
45
|
+
let baseOptions;
|
|
46
|
+
if (configuration) {
|
|
47
|
+
baseOptions = configuration.baseOptions;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
51
|
+
const localVarHeaderParameter = {} as any;
|
|
52
|
+
const localVarQueryParameter = {} as any;
|
|
53
|
+
|
|
54
|
+
// authentication tokenScheme required
|
|
55
|
+
// http bearer authentication required
|
|
56
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
57
|
+
|
|
58
|
+
if (parkCode !== undefined) {
|
|
59
|
+
localVarQueryParameter['parkCode'] = parkCode;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
65
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
66
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
url: toPathString(localVarUrlObj),
|
|
70
|
+
options: localVarRequestOptions,
|
|
71
|
+
};
|
|
72
|
+
},
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* WebHookApi - functional programming interface
|
|
78
|
+
* @export
|
|
79
|
+
*/
|
|
80
|
+
export const WebHookApiFp = function(configuration?: Configuration) {
|
|
81
|
+
const localVarAxiosParamCreator = WebHookApiAxiosParamCreator(configuration)
|
|
82
|
+
return {
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @summary 接收SRM园区合同变更通知
|
|
86
|
+
* @param {string} parkCode 园区编码
|
|
87
|
+
* @param {*} [options] Override http request option.
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
*/
|
|
90
|
+
async srmParkContractChange(parkCode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultVoid>> {
|
|
91
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.srmParkContractChange(parkCode, options);
|
|
92
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
93
|
+
const localVarOperationServerBasePath = operationServerMap['WebHookApi.srmParkContractChange']?.[localVarOperationServerIndex]?.url;
|
|
94
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
95
|
+
},
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* WebHookApi - factory interface
|
|
101
|
+
* @export
|
|
102
|
+
*/
|
|
103
|
+
export const WebHookApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
104
|
+
const localVarFp = WebHookApiFp(configuration)
|
|
105
|
+
return {
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @summary 接收SRM园区合同变更通知
|
|
109
|
+
* @param {WebHookApiSrmParkContractChangeRequest} requestParameters Request parameters.
|
|
110
|
+
* @param {*} [options] Override http request option.
|
|
111
|
+
* @throws {RequiredError}
|
|
112
|
+
*/
|
|
113
|
+
srmParkContractChange(requestParameters: WebHookApiSrmParkContractChangeRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResultVoid> {
|
|
114
|
+
return localVarFp.srmParkContractChange(requestParameters.parkCode, options).then((request) => request(axios, basePath));
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Request parameters for srmParkContractChange operation in WebHookApi.
|
|
121
|
+
* @export
|
|
122
|
+
* @interface WebHookApiSrmParkContractChangeRequest
|
|
123
|
+
*/
|
|
124
|
+
export interface WebHookApiSrmParkContractChangeRequest {
|
|
125
|
+
/**
|
|
126
|
+
* 园区编码
|
|
127
|
+
* @type {string}
|
|
128
|
+
* @memberof WebHookApiSrmParkContractChange
|
|
129
|
+
*/
|
|
130
|
+
readonly parkCode: string
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* WebHookApi - object-oriented interface
|
|
135
|
+
* @export
|
|
136
|
+
* @class WebHookApi
|
|
137
|
+
* @extends {BaseAPI}
|
|
138
|
+
*/
|
|
139
|
+
export class WebHookApi extends BaseAPI {
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @summary 接收SRM园区合同变更通知
|
|
143
|
+
* @param {WebHookApiSrmParkContractChangeRequest} requestParameters Request parameters.
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
* @memberof WebHookApi
|
|
147
|
+
*/
|
|
148
|
+
public srmParkContractChange(requestParameters: WebHookApiSrmParkContractChangeRequest, options?: RawAxiosRequestConfig) {
|
|
149
|
+
return WebHookApiFp(this.configuration).srmParkContractChange(requestParameters.parkCode, options).then((request) => request(this.axios, this.basePath));
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
package/dist/api.d.ts
CHANGED
package/dist/api.js
CHANGED
|
@@ -82,4 +82,5 @@ __exportStar(require("./apis/tenant-api"), exports);
|
|
|
82
82
|
__exportStar(require("./apis/test-api"), exports);
|
|
83
83
|
__exportStar(require("./apis/unloading-area-api"), exports);
|
|
84
84
|
__exportStar(require("./apis/user-api"), exports);
|
|
85
|
+
__exportStar(require("./apis/web-hook-api"), exports);
|
|
85
86
|
__exportStar(require("./apis/work-order-api"), exports);
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { JsonResultVoid } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* WebHookApi - axios parameter creator
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const WebHookApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @summary 接收SRM园区合同变更通知
|
|
24
|
+
* @param {string} parkCode 园区编码
|
|
25
|
+
* @param {*} [options] Override http request option.
|
|
26
|
+
* @throws {RequiredError}
|
|
27
|
+
*/
|
|
28
|
+
srmParkContractChange: (parkCode: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* WebHookApi - functional programming interface
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const WebHookApiFp: (configuration?: Configuration) => {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @summary 接收SRM园区合同变更通知
|
|
38
|
+
* @param {string} parkCode 园区编码
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
srmParkContractChange(parkCode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultVoid>>;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* WebHookApi - factory interface
|
|
46
|
+
* @export
|
|
47
|
+
*/
|
|
48
|
+
export declare const WebHookApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @summary 接收SRM园区合同变更通知
|
|
52
|
+
* @param {WebHookApiSrmParkContractChangeRequest} requestParameters Request parameters.
|
|
53
|
+
* @param {*} [options] Override http request option.
|
|
54
|
+
* @throws {RequiredError}
|
|
55
|
+
*/
|
|
56
|
+
srmParkContractChange(requestParameters: WebHookApiSrmParkContractChangeRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResultVoid>;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Request parameters for srmParkContractChange operation in WebHookApi.
|
|
60
|
+
* @export
|
|
61
|
+
* @interface WebHookApiSrmParkContractChangeRequest
|
|
62
|
+
*/
|
|
63
|
+
export interface WebHookApiSrmParkContractChangeRequest {
|
|
64
|
+
/**
|
|
65
|
+
* 园区编码
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof WebHookApiSrmParkContractChange
|
|
68
|
+
*/
|
|
69
|
+
readonly parkCode: string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* WebHookApi - object-oriented interface
|
|
73
|
+
* @export
|
|
74
|
+
* @class WebHookApi
|
|
75
|
+
* @extends {BaseAPI}
|
|
76
|
+
*/
|
|
77
|
+
export declare class WebHookApi extends BaseAPI {
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @summary 接收SRM园区合同变更通知
|
|
81
|
+
* @param {WebHookApiSrmParkContractChangeRequest} requestParameters Request parameters.
|
|
82
|
+
* @param {*} [options] Override http request option.
|
|
83
|
+
* @throws {RequiredError}
|
|
84
|
+
* @memberof WebHookApi
|
|
85
|
+
*/
|
|
86
|
+
srmParkContractChange(requestParameters: WebHookApiSrmParkContractChangeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<JsonResultVoid, any>>;
|
|
87
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.WebHookApi = exports.WebHookApiFactory = exports.WebHookApiFp = exports.WebHookApiAxiosParamCreator = void 0;
|
|
26
|
+
const axios_1 = require("axios");
|
|
27
|
+
// Some imports not used depending on template conditions
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
const common_1 = require("../common");
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
const base_1 = require("../base");
|
|
32
|
+
/**
|
|
33
|
+
* WebHookApi - axios parameter creator
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
const WebHookApiAxiosParamCreator = function (configuration) {
|
|
37
|
+
return {
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @summary 接收SRM园区合同变更通知
|
|
41
|
+
* @param {string} parkCode 园区编码
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
srmParkContractChange: (parkCode_1, ...args_1) => __awaiter(this, [parkCode_1, ...args_1], void 0, function* (parkCode, options = {}) {
|
|
46
|
+
// verify required parameter 'parkCode' is not null or undefined
|
|
47
|
+
(0, common_1.assertParamExists)('srmParkContractChange', 'parkCode', parkCode);
|
|
48
|
+
const localVarPath = `/webhook/srm/parkContract/change`;
|
|
49
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
51
|
+
let baseOptions;
|
|
52
|
+
if (configuration) {
|
|
53
|
+
baseOptions = configuration.baseOptions;
|
|
54
|
+
}
|
|
55
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
56
|
+
const localVarHeaderParameter = {};
|
|
57
|
+
const localVarQueryParameter = {};
|
|
58
|
+
// authentication tokenScheme required
|
|
59
|
+
// http bearer authentication required
|
|
60
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
61
|
+
if (parkCode !== undefined) {
|
|
62
|
+
localVarQueryParameter['parkCode'] = parkCode;
|
|
63
|
+
}
|
|
64
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
65
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
66
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
67
|
+
return {
|
|
68
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
69
|
+
options: localVarRequestOptions,
|
|
70
|
+
};
|
|
71
|
+
}),
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
exports.WebHookApiAxiosParamCreator = WebHookApiAxiosParamCreator;
|
|
75
|
+
/**
|
|
76
|
+
* WebHookApi - functional programming interface
|
|
77
|
+
* @export
|
|
78
|
+
*/
|
|
79
|
+
const WebHookApiFp = function (configuration) {
|
|
80
|
+
const localVarAxiosParamCreator = (0, exports.WebHookApiAxiosParamCreator)(configuration);
|
|
81
|
+
return {
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @summary 接收SRM园区合同变更通知
|
|
85
|
+
* @param {string} parkCode 园区编码
|
|
86
|
+
* @param {*} [options] Override http request option.
|
|
87
|
+
* @throws {RequiredError}
|
|
88
|
+
*/
|
|
89
|
+
srmParkContractChange(parkCode, options) {
|
|
90
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
91
|
+
var _a, _b, _c;
|
|
92
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.srmParkContractChange(parkCode, options);
|
|
93
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
94
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebHookApi.srmParkContractChange']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
95
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
96
|
+
});
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
exports.WebHookApiFp = WebHookApiFp;
|
|
101
|
+
/**
|
|
102
|
+
* WebHookApi - factory interface
|
|
103
|
+
* @export
|
|
104
|
+
*/
|
|
105
|
+
const WebHookApiFactory = function (configuration, basePath, axios) {
|
|
106
|
+
const localVarFp = (0, exports.WebHookApiFp)(configuration);
|
|
107
|
+
return {
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @summary 接收SRM园区合同变更通知
|
|
111
|
+
* @param {WebHookApiSrmParkContractChangeRequest} requestParameters Request parameters.
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
*/
|
|
115
|
+
srmParkContractChange(requestParameters, options) {
|
|
116
|
+
return localVarFp.srmParkContractChange(requestParameters.parkCode, options).then((request) => request(axios, basePath));
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
exports.WebHookApiFactory = WebHookApiFactory;
|
|
121
|
+
/**
|
|
122
|
+
* WebHookApi - object-oriented interface
|
|
123
|
+
* @export
|
|
124
|
+
* @class WebHookApi
|
|
125
|
+
* @extends {BaseAPI}
|
|
126
|
+
*/
|
|
127
|
+
class WebHookApi extends base_1.BaseAPI {
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @summary 接收SRM园区合同变更通知
|
|
131
|
+
* @param {WebHookApiSrmParkContractChangeRequest} requestParameters Request parameters.
|
|
132
|
+
* @param {*} [options] Override http request option.
|
|
133
|
+
* @throws {RequiredError}
|
|
134
|
+
* @memberof WebHookApi
|
|
135
|
+
*/
|
|
136
|
+
srmParkContractChange(requestParameters, options) {
|
|
137
|
+
return (0, exports.WebHookApiFp)(this.configuration).srmParkContractChange(requestParameters.parkCode, options).then((request) => request(this.axios, this.basePath));
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
exports.WebHookApi = WebHookApi;
|
package/dist/esm/api.d.ts
CHANGED
package/dist/esm/api.js
CHANGED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { JsonResultVoid } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* WebHookApi - axios parameter creator
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const WebHookApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @summary 接收SRM园区合同变更通知
|
|
24
|
+
* @param {string} parkCode 园区编码
|
|
25
|
+
* @param {*} [options] Override http request option.
|
|
26
|
+
* @throws {RequiredError}
|
|
27
|
+
*/
|
|
28
|
+
srmParkContractChange: (parkCode: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* WebHookApi - functional programming interface
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const WebHookApiFp: (configuration?: Configuration) => {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @summary 接收SRM园区合同变更通知
|
|
38
|
+
* @param {string} parkCode 园区编码
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
srmParkContractChange(parkCode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultVoid>>;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* WebHookApi - factory interface
|
|
46
|
+
* @export
|
|
47
|
+
*/
|
|
48
|
+
export declare const WebHookApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @summary 接收SRM园区合同变更通知
|
|
52
|
+
* @param {WebHookApiSrmParkContractChangeRequest} requestParameters Request parameters.
|
|
53
|
+
* @param {*} [options] Override http request option.
|
|
54
|
+
* @throws {RequiredError}
|
|
55
|
+
*/
|
|
56
|
+
srmParkContractChange(requestParameters: WebHookApiSrmParkContractChangeRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResultVoid>;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Request parameters for srmParkContractChange operation in WebHookApi.
|
|
60
|
+
* @export
|
|
61
|
+
* @interface WebHookApiSrmParkContractChangeRequest
|
|
62
|
+
*/
|
|
63
|
+
export interface WebHookApiSrmParkContractChangeRequest {
|
|
64
|
+
/**
|
|
65
|
+
* 园区编码
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof WebHookApiSrmParkContractChange
|
|
68
|
+
*/
|
|
69
|
+
readonly parkCode: string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* WebHookApi - object-oriented interface
|
|
73
|
+
* @export
|
|
74
|
+
* @class WebHookApi
|
|
75
|
+
* @extends {BaseAPI}
|
|
76
|
+
*/
|
|
77
|
+
export declare class WebHookApi extends BaseAPI {
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @summary 接收SRM园区合同变更通知
|
|
81
|
+
* @param {WebHookApiSrmParkContractChangeRequest} requestParameters Request parameters.
|
|
82
|
+
* @param {*} [options] Override http request option.
|
|
83
|
+
* @throws {RequiredError}
|
|
84
|
+
* @memberof WebHookApi
|
|
85
|
+
*/
|
|
86
|
+
srmParkContractChange(requestParameters: WebHookApiSrmParkContractChangeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<JsonResultVoid, any>>;
|
|
87
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OpenAPI definition
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import globalAxios from 'axios';
|
|
24
|
+
// Some imports not used depending on template conditions
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
|
+
/**
|
|
30
|
+
* WebHookApi - axios parameter creator
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export const WebHookApiAxiosParamCreator = function (configuration) {
|
|
34
|
+
return {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @summary 接收SRM园区合同变更通知
|
|
38
|
+
* @param {string} parkCode 园区编码
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
srmParkContractChange: (parkCode_1, ...args_1) => __awaiter(this, [parkCode_1, ...args_1], void 0, function* (parkCode, options = {}) {
|
|
43
|
+
// verify required parameter 'parkCode' is not null or undefined
|
|
44
|
+
assertParamExists('srmParkContractChange', 'parkCode', parkCode);
|
|
45
|
+
const localVarPath = `/webhook/srm/parkContract/change`;
|
|
46
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
48
|
+
let baseOptions;
|
|
49
|
+
if (configuration) {
|
|
50
|
+
baseOptions = configuration.baseOptions;
|
|
51
|
+
}
|
|
52
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
53
|
+
const localVarHeaderParameter = {};
|
|
54
|
+
const localVarQueryParameter = {};
|
|
55
|
+
// authentication tokenScheme required
|
|
56
|
+
// http bearer authentication required
|
|
57
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
58
|
+
if (parkCode !== undefined) {
|
|
59
|
+
localVarQueryParameter['parkCode'] = parkCode;
|
|
60
|
+
}
|
|
61
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
62
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
63
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
64
|
+
return {
|
|
65
|
+
url: toPathString(localVarUrlObj),
|
|
66
|
+
options: localVarRequestOptions,
|
|
67
|
+
};
|
|
68
|
+
}),
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* WebHookApi - functional programming interface
|
|
73
|
+
* @export
|
|
74
|
+
*/
|
|
75
|
+
export const WebHookApiFp = function (configuration) {
|
|
76
|
+
const localVarAxiosParamCreator = WebHookApiAxiosParamCreator(configuration);
|
|
77
|
+
return {
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @summary 接收SRM园区合同变更通知
|
|
81
|
+
* @param {string} parkCode 园区编码
|
|
82
|
+
* @param {*} [options] Override http request option.
|
|
83
|
+
* @throws {RequiredError}
|
|
84
|
+
*/
|
|
85
|
+
srmParkContractChange(parkCode, options) {
|
|
86
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
+
var _a, _b, _c;
|
|
88
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.srmParkContractChange(parkCode, options);
|
|
89
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
90
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WebHookApi.srmParkContractChange']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
91
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
92
|
+
});
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* WebHookApi - factory interface
|
|
98
|
+
* @export
|
|
99
|
+
*/
|
|
100
|
+
export const WebHookApiFactory = function (configuration, basePath, axios) {
|
|
101
|
+
const localVarFp = WebHookApiFp(configuration);
|
|
102
|
+
return {
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @summary 接收SRM园区合同变更通知
|
|
106
|
+
* @param {WebHookApiSrmParkContractChangeRequest} requestParameters Request parameters.
|
|
107
|
+
* @param {*} [options] Override http request option.
|
|
108
|
+
* @throws {RequiredError}
|
|
109
|
+
*/
|
|
110
|
+
srmParkContractChange(requestParameters, options) {
|
|
111
|
+
return localVarFp.srmParkContractChange(requestParameters.parkCode, options).then((request) => request(axios, basePath));
|
|
112
|
+
},
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* WebHookApi - object-oriented interface
|
|
117
|
+
* @export
|
|
118
|
+
* @class WebHookApi
|
|
119
|
+
* @extends {BaseAPI}
|
|
120
|
+
*/
|
|
121
|
+
export class WebHookApi extends BaseAPI {
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @summary 接收SRM园区合同变更通知
|
|
125
|
+
* @param {WebHookApiSrmParkContractChangeRequest} requestParameters Request parameters.
|
|
126
|
+
* @param {*} [options] Override http request option.
|
|
127
|
+
* @throws {RequiredError}
|
|
128
|
+
* @memberof WebHookApi
|
|
129
|
+
*/
|
|
130
|
+
srmParkContractChange(requestParameters, options) {
|
|
131
|
+
return WebHookApiFp(this.configuration).srmParkContractChange(requestParameters.parkCode, options).then((request) => request(this.axios, this.basePath));
|
|
132
|
+
}
|
|
133
|
+
}
|
|
@@ -19,16 +19,16 @@ import type { GetUserWx200ResponseOutputStream } from './get-user-wx200-response
|
|
|
19
19
|
export interface GetUserWx200Response {
|
|
20
20
|
/**
|
|
21
21
|
*
|
|
22
|
-
* @type {
|
|
22
|
+
* @type {number}
|
|
23
23
|
* @memberof GetUserWx200Response
|
|
24
24
|
*/
|
|
25
|
-
'
|
|
25
|
+
'status'?: number;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
|
-
* @type {
|
|
28
|
+
* @type {Array<string>}
|
|
29
29
|
* @memberof GetUserWx200Response
|
|
30
30
|
*/
|
|
31
|
-
'
|
|
31
|
+
'headerNames'?: Array<string>;
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @type {object}
|
|
@@ -34,12 +34,6 @@ export interface IPageAccessVO {
|
|
|
34
34
|
* @memberof IPageAccessVO
|
|
35
35
|
*/
|
|
36
36
|
'records'?: Array<AccessVO>;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {number}
|
|
40
|
-
* @memberof IPageAccessVO
|
|
41
|
-
*/
|
|
42
|
-
'pages'?: number;
|
|
43
37
|
/**
|
|
44
38
|
*
|
|
45
39
|
* @type {boolean}
|
|
@@ -53,6 +47,12 @@ export interface IPageAccessVO {
|
|
|
53
47
|
* @memberof IPageAccessVO
|
|
54
48
|
*/
|
|
55
49
|
'searchCount'?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof IPageAccessVO
|
|
54
|
+
*/
|
|
55
|
+
'pages'?: number;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
58
|
* @type {number}
|
|
@@ -19,16 +19,16 @@ import type { GetUserWx200ResponseOutputStream } from './get-user-wx200-response
|
|
|
19
19
|
export interface GetUserWx200Response {
|
|
20
20
|
/**
|
|
21
21
|
*
|
|
22
|
-
* @type {
|
|
22
|
+
* @type {number}
|
|
23
23
|
* @memberof GetUserWx200Response
|
|
24
24
|
*/
|
|
25
|
-
'
|
|
25
|
+
'status'?: number;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
|
-
* @type {
|
|
28
|
+
* @type {Array<string>}
|
|
29
29
|
* @memberof GetUserWx200Response
|
|
30
30
|
*/
|
|
31
|
-
'
|
|
31
|
+
'headerNames'?: Array<string>;
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @type {object}
|
|
@@ -34,12 +34,6 @@ export interface IPageAccessVO {
|
|
|
34
34
|
* @memberof IPageAccessVO
|
|
35
35
|
*/
|
|
36
36
|
'records'?: Array<AccessVO>;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {number}
|
|
40
|
-
* @memberof IPageAccessVO
|
|
41
|
-
*/
|
|
42
|
-
'pages'?: number;
|
|
43
37
|
/**
|
|
44
38
|
*
|
|
45
39
|
* @type {boolean}
|
|
@@ -53,6 +47,12 @@ export interface IPageAccessVO {
|
|
|
53
47
|
* @memberof IPageAccessVO
|
|
54
48
|
*/
|
|
55
49
|
'searchCount'?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof IPageAccessVO
|
|
54
|
+
*/
|
|
55
|
+
'pages'?: number;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
58
|
* @type {number}
|
|
@@ -28,16 +28,16 @@ import type { GetUserWx200ResponseOutputStream } from './get-user-wx200-response
|
|
|
28
28
|
export interface GetUserWx200Response {
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
|
-
* @type {
|
|
31
|
+
* @type {number}
|
|
32
32
|
* @memberof GetUserWx200Response
|
|
33
33
|
*/
|
|
34
|
-
'
|
|
34
|
+
'status'?: number;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
|
-
* @type {
|
|
37
|
+
* @type {Array<string>}
|
|
38
38
|
* @memberof GetUserWx200Response
|
|
39
39
|
*/
|
|
40
|
-
'
|
|
40
|
+
'headerNames'?: Array<string>;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @type {object}
|
|
@@ -41,12 +41,6 @@ export interface IPageAccessVO {
|
|
|
41
41
|
* @memberof IPageAccessVO
|
|
42
42
|
*/
|
|
43
43
|
'records'?: Array<AccessVO>;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {number}
|
|
47
|
-
* @memberof IPageAccessVO
|
|
48
|
-
*/
|
|
49
|
-
'pages'?: number;
|
|
50
44
|
/**
|
|
51
45
|
*
|
|
52
46
|
* @type {boolean}
|
|
@@ -60,6 +54,12 @@ export interface IPageAccessVO {
|
|
|
60
54
|
* @memberof IPageAccessVO
|
|
61
55
|
*/
|
|
62
56
|
'searchCount'?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {number}
|
|
60
|
+
* @memberof IPageAccessVO
|
|
61
|
+
*/
|
|
62
|
+
'pages'?: number;
|
|
63
63
|
/**
|
|
64
64
|
*
|
|
65
65
|
* @type {number}
|