@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,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
@@ -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/api.js CHANGED
@@ -42,7 +42,7 @@ __exportStar(require("./apis/cost-api"), exports);
42
42
  __exportStar(require("./apis/dashboard-api"), exports);
43
43
  __exportStar(require("./apis/device-api"), exports);
44
44
  __exportStar(require("./apis/device-group-settings-api"), exports);
45
- __exportStar(require("./apis/disaster-warning-standard-controller-api"), exports);
45
+ __exportStar(require("./apis/disaster-warning-standard-api"), exports);
46
46
  __exportStar(require("./apis/energy-api"), exports);
47
47
  __exportStar(require("./apis/equipment-api"), exports);
48
48
  __exportStar(require("./apis/esg-api"), exports);
@@ -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);