@gizone/rrs-client 4.2.0-alpha.242 → 4.2.0-alpha.244

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.
@@ -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
@@ -24,7 +24,7 @@ export * from './apis/cost-api';
24
24
  export * from './apis/dashboard-api';
25
25
  export * from './apis/device-api';
26
26
  export * from './apis/device-group-settings-api';
27
- export * from './apis/disaster-warning-standard-controller-api';
27
+ export * from './apis/disaster-warning-standard-api';
28
28
  export * from './apis/energy-api';
29
29
  export * from './apis/equipment-api';
30
30
  export * from './apis/esg-api';
@@ -64,4 +64,5 @@ export * from './apis/tenant-api';
64
64
  export * from './apis/test-api';
65
65
  export * from './apis/unloading-area-api';
66
66
  export * from './apis/user-api';
67
+ export * from './apis/web-hook-api';
67
68
  export * from './apis/work-order-api';
package/dist/esm/api.js CHANGED
@@ -26,7 +26,7 @@ export * from './apis/cost-api';
26
26
  export * from './apis/dashboard-api';
27
27
  export * from './apis/device-api';
28
28
  export * from './apis/device-group-settings-api';
29
- export * from './apis/disaster-warning-standard-controller-api';
29
+ export * from './apis/disaster-warning-standard-api';
30
30
  export * from './apis/energy-api';
31
31
  export * from './apis/equipment-api';
32
32
  export * from './apis/esg-api';
@@ -66,4 +66,5 @@ export * from './apis/tenant-api';
66
66
  export * from './apis/test-api';
67
67
  export * from './apis/unloading-area-api';
68
68
  export * from './apis/user-api';
69
+ export * from './apis/web-hook-api';
69
70
  export * from './apis/work-order-api';