@vbasoftware/vbapi-vbasoftware-typescript-axios 1.20230913.1 → 1.20230919.1

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,288 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * VBASoftware
5
+ * APIs for VBASoftware
6
+ *
7
+ * The version of the OpenAPI document: v1
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 globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CopyGroupDivision } from '../models';
25
+ // @ts-ignore
26
+ import { GroupDivisionVBAResponse } from '../models';
27
+ // @ts-ignore
28
+ import { VBAGroupContractEnrollmentSummaryListVBAResponse } from '../models';
29
+ /**
30
+ * AdvGroupDivisionsApi - axios parameter creator
31
+ * @export
32
+ */
33
+ export const AdvGroupDivisionsApiAxiosParamCreator = function (configuration?: Configuration) {
34
+ return {
35
+ /**
36
+ * Copy a specific GroupDivision to a new GroupDivision
37
+ * @summary Copy a GroupDivision
38
+ * @param {string} vbasoftwareDatabase Target database
39
+ * @param {string} groupID Group ID
40
+ * @param {string} divisionID Division ID
41
+ * @param {CopyGroupDivision} copyGroupDivision
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ copyGroupDivision: async (vbasoftwareDatabase: string, groupID: string, divisionID: string, copyGroupDivision: CopyGroupDivision, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
+ // verify required parameter 'vbasoftwareDatabase' is not null or undefined
47
+ assertParamExists('copyGroupDivision', 'vbasoftwareDatabase', vbasoftwareDatabase)
48
+ // verify required parameter 'groupID' is not null or undefined
49
+ assertParamExists('copyGroupDivision', 'groupID', groupID)
50
+ // verify required parameter 'divisionID' is not null or undefined
51
+ assertParamExists('copyGroupDivision', 'divisionID', divisionID)
52
+ // verify required parameter 'copyGroupDivision' is not null or undefined
53
+ assertParamExists('copyGroupDivision', 'copyGroupDivision', copyGroupDivision)
54
+ const localVarPath = `/groups/{groupID}/divisions/{divisionID}/copy`
55
+ .replace(`{${"groupID"}}`, encodeURIComponent(String(groupID)))
56
+ .replace(`{${"divisionID"}}`, encodeURIComponent(String(divisionID)));
57
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
58
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
59
+ let baseOptions;
60
+ if (configuration) {
61
+ baseOptions = configuration.baseOptions;
62
+ }
63
+
64
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
65
+ const localVarHeaderParameter = {} as any;
66
+ const localVarQueryParameter = {} as any;
67
+
68
+ // authentication apiKeyAuth required
69
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
70
+
71
+ // authentication bearerAuth required
72
+ // http bearer authentication required
73
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
74
+
75
+ if (vbasoftwareDatabase !== undefined && vbasoftwareDatabase !== null) {
76
+ localVarHeaderParameter['vbasoftware-database'] = String(vbasoftwareDatabase);
77
+ }
78
+
79
+
80
+
81
+ localVarHeaderParameter['Content-Type'] = 'application/json';
82
+
83
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
84
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
85
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
86
+ localVarRequestOptions.data = serializeDataIfNeeded(copyGroupDivision, localVarRequestOptions, configuration)
87
+
88
+ return {
89
+ url: toPathString(localVarUrlObj),
90
+ options: localVarRequestOptions,
91
+ };
92
+ },
93
+ /**
94
+ * Gets enrollment summary for the given group id and division id.
95
+ * @summary Get Group enrollment summary information
96
+ * @param {string} vbasoftwareDatabase Target database
97
+ * @param {string} groupID Group ID
98
+ * @param {string} divisionID Division ID
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ getGroupDivisionEnrollmentSummary: async (vbasoftwareDatabase: string, groupID: string, divisionID: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
103
+ // verify required parameter 'vbasoftwareDatabase' is not null or undefined
104
+ assertParamExists('getGroupDivisionEnrollmentSummary', 'vbasoftwareDatabase', vbasoftwareDatabase)
105
+ // verify required parameter 'groupID' is not null or undefined
106
+ assertParamExists('getGroupDivisionEnrollmentSummary', 'groupID', groupID)
107
+ // verify required parameter 'divisionID' is not null or undefined
108
+ assertParamExists('getGroupDivisionEnrollmentSummary', 'divisionID', divisionID)
109
+ const localVarPath = `/groups/{groupID}/divisions/{divisionID}/enrollment-summary`
110
+ .replace(`{${"groupID"}}`, encodeURIComponent(String(groupID)))
111
+ .replace(`{${"divisionID"}}`, encodeURIComponent(String(divisionID)));
112
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
113
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
114
+ let baseOptions;
115
+ if (configuration) {
116
+ baseOptions = configuration.baseOptions;
117
+ }
118
+
119
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
120
+ const localVarHeaderParameter = {} as any;
121
+ const localVarQueryParameter = {} as any;
122
+
123
+ // authentication apiKeyAuth required
124
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
125
+
126
+ // authentication bearerAuth required
127
+ // http bearer authentication required
128
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
129
+
130
+ if (vbasoftwareDatabase !== undefined && vbasoftwareDatabase !== null) {
131
+ localVarHeaderParameter['vbasoftware-database'] = String(vbasoftwareDatabase);
132
+ }
133
+
134
+
135
+
136
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
137
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
139
+
140
+ return {
141
+ url: toPathString(localVarUrlObj),
142
+ options: localVarRequestOptions,
143
+ };
144
+ },
145
+ }
146
+ };
147
+
148
+ /**
149
+ * AdvGroupDivisionsApi - functional programming interface
150
+ * @export
151
+ */
152
+ export const AdvGroupDivisionsApiFp = function(configuration?: Configuration) {
153
+ const localVarAxiosParamCreator = AdvGroupDivisionsApiAxiosParamCreator(configuration)
154
+ return {
155
+ /**
156
+ * Copy a specific GroupDivision to a new GroupDivision
157
+ * @summary Copy a GroupDivision
158
+ * @param {string} vbasoftwareDatabase Target database
159
+ * @param {string} groupID Group ID
160
+ * @param {string} divisionID Division ID
161
+ * @param {CopyGroupDivision} copyGroupDivision
162
+ * @param {*} [options] Override http request option.
163
+ * @throws {RequiredError}
164
+ */
165
+ async copyGroupDivision(vbasoftwareDatabase: string, groupID: string, divisionID: string, copyGroupDivision: CopyGroupDivision, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupDivisionVBAResponse>> {
166
+ const localVarAxiosArgs = await localVarAxiosParamCreator.copyGroupDivision(vbasoftwareDatabase, groupID, divisionID, copyGroupDivision, options);
167
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
168
+ },
169
+ /**
170
+ * Gets enrollment summary for the given group id and division id.
171
+ * @summary Get Group enrollment summary information
172
+ * @param {string} vbasoftwareDatabase Target database
173
+ * @param {string} groupID Group ID
174
+ * @param {string} divisionID Division ID
175
+ * @param {*} [options] Override http request option.
176
+ * @throws {RequiredError}
177
+ */
178
+ async getGroupDivisionEnrollmentSummary(vbasoftwareDatabase: string, groupID: string, divisionID: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VBAGroupContractEnrollmentSummaryListVBAResponse>> {
179
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGroupDivisionEnrollmentSummary(vbasoftwareDatabase, groupID, divisionID, options);
180
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
181
+ },
182
+ }
183
+ };
184
+
185
+ /**
186
+ * AdvGroupDivisionsApi - factory interface
187
+ * @export
188
+ */
189
+ export const AdvGroupDivisionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
190
+ const localVarFp = AdvGroupDivisionsApiFp(configuration)
191
+ return {
192
+ /**
193
+ * Copy a specific GroupDivision to a new GroupDivision
194
+ * @summary Copy a GroupDivision
195
+ * @param {string} vbasoftwareDatabase Target database
196
+ * @param {string} groupID Group ID
197
+ * @param {string} divisionID Division ID
198
+ * @param {CopyGroupDivision} copyGroupDivision
199
+ * @param {*} [options] Override http request option.
200
+ * @throws {RequiredError}
201
+ */
202
+ copyGroupDivision(vbasoftwareDatabase: string, groupID: string, divisionID: string, copyGroupDivision: CopyGroupDivision, options?: any): AxiosPromise<GroupDivisionVBAResponse> {
203
+ return localVarFp.copyGroupDivision(vbasoftwareDatabase, groupID, divisionID, copyGroupDivision, options).then((request) => request(axios, basePath));
204
+ },
205
+ /**
206
+ * Gets enrollment summary for the given group id and division id.
207
+ * @summary Get Group enrollment summary information
208
+ * @param {string} vbasoftwareDatabase Target database
209
+ * @param {string} groupID Group ID
210
+ * @param {string} divisionID Division ID
211
+ * @param {*} [options] Override http request option.
212
+ * @throws {RequiredError}
213
+ */
214
+ getGroupDivisionEnrollmentSummary(vbasoftwareDatabase: string, groupID: string, divisionID: string, options?: any): AxiosPromise<VBAGroupContractEnrollmentSummaryListVBAResponse> {
215
+ return localVarFp.getGroupDivisionEnrollmentSummary(vbasoftwareDatabase, groupID, divisionID, options).then((request) => request(axios, basePath));
216
+ },
217
+ };
218
+ };
219
+
220
+ /**
221
+ * AdvGroupDivisionsApi - interface
222
+ * @export
223
+ * @interface AdvGroupDivisionsApi
224
+ */
225
+ export interface AdvGroupDivisionsApiInterface {
226
+ /**
227
+ * Copy a specific GroupDivision to a new GroupDivision
228
+ * @summary Copy a GroupDivision
229
+ * @param {string} vbasoftwareDatabase Target database
230
+ * @param {string} groupID Group ID
231
+ * @param {string} divisionID Division ID
232
+ * @param {CopyGroupDivision} copyGroupDivision
233
+ * @param {*} [options] Override http request option.
234
+ * @throws {RequiredError}
235
+ * @memberof AdvGroupDivisionsApiInterface
236
+ */
237
+ copyGroupDivision(vbasoftwareDatabase: string, groupID: string, divisionID: string, copyGroupDivision: CopyGroupDivision, options?: AxiosRequestConfig): AxiosPromise<GroupDivisionVBAResponse>;
238
+
239
+ /**
240
+ * Gets enrollment summary for the given group id and division id.
241
+ * @summary Get Group enrollment summary information
242
+ * @param {string} vbasoftwareDatabase Target database
243
+ * @param {string} groupID Group ID
244
+ * @param {string} divisionID Division ID
245
+ * @param {*} [options] Override http request option.
246
+ * @throws {RequiredError}
247
+ * @memberof AdvGroupDivisionsApiInterface
248
+ */
249
+ getGroupDivisionEnrollmentSummary(vbasoftwareDatabase: string, groupID: string, divisionID: string, options?: AxiosRequestConfig): AxiosPromise<VBAGroupContractEnrollmentSummaryListVBAResponse>;
250
+
251
+ }
252
+
253
+ /**
254
+ * AdvGroupDivisionsApi - object-oriented interface
255
+ * @export
256
+ * @class AdvGroupDivisionsApi
257
+ * @extends {BaseAPI}
258
+ */
259
+ export class AdvGroupDivisionsApi extends BaseAPI implements AdvGroupDivisionsApiInterface {
260
+ /**
261
+ * Copy a specific GroupDivision to a new GroupDivision
262
+ * @summary Copy a GroupDivision
263
+ * @param {string} vbasoftwareDatabase Target database
264
+ * @param {string} groupID Group ID
265
+ * @param {string} divisionID Division ID
266
+ * @param {CopyGroupDivision} copyGroupDivision
267
+ * @param {*} [options] Override http request option.
268
+ * @throws {RequiredError}
269
+ * @memberof AdvGroupDivisionsApi
270
+ */
271
+ public copyGroupDivision(vbasoftwareDatabase: string, groupID: string, divisionID: string, copyGroupDivision: CopyGroupDivision, options?: AxiosRequestConfig) {
272
+ return AdvGroupDivisionsApiFp(this.configuration).copyGroupDivision(vbasoftwareDatabase, groupID, divisionID, copyGroupDivision, options).then((request) => request(this.axios, this.basePath));
273
+ }
274
+
275
+ /**
276
+ * Gets enrollment summary for the given group id and division id.
277
+ * @summary Get Group enrollment summary information
278
+ * @param {string} vbasoftwareDatabase Target database
279
+ * @param {string} groupID Group ID
280
+ * @param {string} divisionID Division ID
281
+ * @param {*} [options] Override http request option.
282
+ * @throws {RequiredError}
283
+ * @memberof AdvGroupDivisionsApi
284
+ */
285
+ public getGroupDivisionEnrollmentSummary(vbasoftwareDatabase: string, groupID: string, divisionID: string, options?: AxiosRequestConfig) {
286
+ return AdvGroupDivisionsApiFp(this.configuration).getGroupDivisionEnrollmentSummary(vbasoftwareDatabase, groupID, divisionID, options).then((request) => request(this.axios, this.basePath));
287
+ }
288
+ }
@@ -0,0 +1,379 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * VBASoftware
5
+ * APIs for VBASoftware
6
+ *
7
+ * The version of the OpenAPI document: v1
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 globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { EnrollmentDisenrollGroup } from '../models';
25
+ // @ts-ignore
26
+ import { EnrollmentReenroll } from '../models';
27
+ // @ts-ignore
28
+ import { VBAGroupEnrollmentSummaryVBAResponse } from '../models';
29
+ // @ts-ignore
30
+ import { VBAProcessVBAResponse } from '../models';
31
+ /**
32
+ * AdvGroupsApi - axios parameter creator
33
+ * @export
34
+ */
35
+ export const AdvGroupsApiAxiosParamCreator = function (configuration?: Configuration) {
36
+ return {
37
+ /**
38
+ * Gets Group enrollment summary for the given group id.
39
+ * @summary Get Group enrollment summary information
40
+ * @param {string} vbasoftwareDatabase Target database
41
+ * @param {string} groupID Group ID
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ getGroupEnrollmentSummary: async (vbasoftwareDatabase: string, groupID: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
+ // verify required parameter 'vbasoftwareDatabase' is not null or undefined
47
+ assertParamExists('getGroupEnrollmentSummary', 'vbasoftwareDatabase', vbasoftwareDatabase)
48
+ // verify required parameter 'groupID' is not null or undefined
49
+ assertParamExists('getGroupEnrollmentSummary', 'groupID', groupID)
50
+ const localVarPath = `/groups/{groupID}/enrollment-summary`
51
+ .replace(`{${"groupID"}}`, encodeURIComponent(String(groupID)));
52
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
53
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
54
+ let baseOptions;
55
+ if (configuration) {
56
+ baseOptions = configuration.baseOptions;
57
+ }
58
+
59
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
60
+ const localVarHeaderParameter = {} as any;
61
+ const localVarQueryParameter = {} as any;
62
+
63
+ // authentication apiKeyAuth required
64
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
65
+
66
+ // authentication bearerAuth required
67
+ // http bearer authentication required
68
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
69
+
70
+ if (vbasoftwareDatabase !== undefined && vbasoftwareDatabase !== null) {
71
+ localVarHeaderParameter['vbasoftware-database'] = String(vbasoftwareDatabase);
72
+ }
73
+
74
+
75
+
76
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
77
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
78
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
79
+
80
+ return {
81
+ url: toPathString(localVarUrlObj),
82
+ options: localVarRequestOptions,
83
+ };
84
+ },
85
+ /**
86
+ * Disenrolls a Group and/or Division. A VBAProcess object is returned representing the process state. See VBAProcess area for more information.
87
+ * @summary Group Disenroll
88
+ * @param {string} vbasoftwareDatabase Target database
89
+ * @param {string} groupID Group ID
90
+ * @param {EnrollmentDisenrollGroup} enrollmentDisenrollGroup
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ */
94
+ groupDisenroll: async (vbasoftwareDatabase: string, groupID: string, enrollmentDisenrollGroup: EnrollmentDisenrollGroup, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
95
+ // verify required parameter 'vbasoftwareDatabase' is not null or undefined
96
+ assertParamExists('groupDisenroll', 'vbasoftwareDatabase', vbasoftwareDatabase)
97
+ // verify required parameter 'groupID' is not null or undefined
98
+ assertParamExists('groupDisenroll', 'groupID', groupID)
99
+ // verify required parameter 'enrollmentDisenrollGroup' is not null or undefined
100
+ assertParamExists('groupDisenroll', 'enrollmentDisenrollGroup', enrollmentDisenrollGroup)
101
+ const localVarPath = `/groups/{groupID}/disenroll`
102
+ .replace(`{${"groupID"}}`, encodeURIComponent(String(groupID)));
103
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
104
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
105
+ let baseOptions;
106
+ if (configuration) {
107
+ baseOptions = configuration.baseOptions;
108
+ }
109
+
110
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
111
+ const localVarHeaderParameter = {} as any;
112
+ const localVarQueryParameter = {} as any;
113
+
114
+ // authentication apiKeyAuth required
115
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
116
+
117
+ // authentication bearerAuth required
118
+ // http bearer authentication required
119
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
120
+
121
+ if (vbasoftwareDatabase !== undefined && vbasoftwareDatabase !== null) {
122
+ localVarHeaderParameter['vbasoftware-database'] = String(vbasoftwareDatabase);
123
+ }
124
+
125
+
126
+
127
+ localVarHeaderParameter['Content-Type'] = 'application/json';
128
+
129
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
130
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
131
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
132
+ localVarRequestOptions.data = serializeDataIfNeeded(enrollmentDisenrollGroup, localVarRequestOptions, configuration)
133
+
134
+ return {
135
+ url: toPathString(localVarUrlObj),
136
+ options: localVarRequestOptions,
137
+ };
138
+ },
139
+ /**
140
+ * Re-enrolls a Group and/or Division. A VBAProcess object is returned representing the process state. See VBAProcess area for more information.
141
+ * @summary Group Reenroll
142
+ * @param {string} vbasoftwareDatabase Target database
143
+ * @param {string} groupID Group ID
144
+ * @param {EnrollmentReenroll} enrollmentReenroll
145
+ * @param {*} [options] Override http request option.
146
+ * @throws {RequiredError}
147
+ */
148
+ groupReenroll: async (vbasoftwareDatabase: string, groupID: string, enrollmentReenroll: EnrollmentReenroll, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
149
+ // verify required parameter 'vbasoftwareDatabase' is not null or undefined
150
+ assertParamExists('groupReenroll', 'vbasoftwareDatabase', vbasoftwareDatabase)
151
+ // verify required parameter 'groupID' is not null or undefined
152
+ assertParamExists('groupReenroll', 'groupID', groupID)
153
+ // verify required parameter 'enrollmentReenroll' is not null or undefined
154
+ assertParamExists('groupReenroll', 'enrollmentReenroll', enrollmentReenroll)
155
+ const localVarPath = `/groups/{groupID}/reenroll`
156
+ .replace(`{${"groupID"}}`, encodeURIComponent(String(groupID)));
157
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
158
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
159
+ let baseOptions;
160
+ if (configuration) {
161
+ baseOptions = configuration.baseOptions;
162
+ }
163
+
164
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
165
+ const localVarHeaderParameter = {} as any;
166
+ const localVarQueryParameter = {} as any;
167
+
168
+ // authentication apiKeyAuth required
169
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
170
+
171
+ // authentication bearerAuth required
172
+ // http bearer authentication required
173
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
174
+
175
+ if (vbasoftwareDatabase !== undefined && vbasoftwareDatabase !== null) {
176
+ localVarHeaderParameter['vbasoftware-database'] = String(vbasoftwareDatabase);
177
+ }
178
+
179
+
180
+
181
+ localVarHeaderParameter['Content-Type'] = 'application/json';
182
+
183
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
184
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
185
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
186
+ localVarRequestOptions.data = serializeDataIfNeeded(enrollmentReenroll, localVarRequestOptions, configuration)
187
+
188
+ return {
189
+ url: toPathString(localVarUrlObj),
190
+ options: localVarRequestOptions,
191
+ };
192
+ },
193
+ }
194
+ };
195
+
196
+ /**
197
+ * AdvGroupsApi - functional programming interface
198
+ * @export
199
+ */
200
+ export const AdvGroupsApiFp = function(configuration?: Configuration) {
201
+ const localVarAxiosParamCreator = AdvGroupsApiAxiosParamCreator(configuration)
202
+ return {
203
+ /**
204
+ * Gets Group enrollment summary for the given group id.
205
+ * @summary Get Group enrollment summary information
206
+ * @param {string} vbasoftwareDatabase Target database
207
+ * @param {string} groupID Group ID
208
+ * @param {*} [options] Override http request option.
209
+ * @throws {RequiredError}
210
+ */
211
+ async getGroupEnrollmentSummary(vbasoftwareDatabase: string, groupID: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VBAGroupEnrollmentSummaryVBAResponse>> {
212
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGroupEnrollmentSummary(vbasoftwareDatabase, groupID, options);
213
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
214
+ },
215
+ /**
216
+ * Disenrolls a Group and/or Division. A VBAProcess object is returned representing the process state. See VBAProcess area for more information.
217
+ * @summary Group Disenroll
218
+ * @param {string} vbasoftwareDatabase Target database
219
+ * @param {string} groupID Group ID
220
+ * @param {EnrollmentDisenrollGroup} enrollmentDisenrollGroup
221
+ * @param {*} [options] Override http request option.
222
+ * @throws {RequiredError}
223
+ */
224
+ async groupDisenroll(vbasoftwareDatabase: string, groupID: string, enrollmentDisenrollGroup: EnrollmentDisenrollGroup, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VBAProcessVBAResponse>> {
225
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupDisenroll(vbasoftwareDatabase, groupID, enrollmentDisenrollGroup, options);
226
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
227
+ },
228
+ /**
229
+ * Re-enrolls a Group and/or Division. A VBAProcess object is returned representing the process state. See VBAProcess area for more information.
230
+ * @summary Group Reenroll
231
+ * @param {string} vbasoftwareDatabase Target database
232
+ * @param {string} groupID Group ID
233
+ * @param {EnrollmentReenroll} enrollmentReenroll
234
+ * @param {*} [options] Override http request option.
235
+ * @throws {RequiredError}
236
+ */
237
+ async groupReenroll(vbasoftwareDatabase: string, groupID: string, enrollmentReenroll: EnrollmentReenroll, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VBAProcessVBAResponse>> {
238
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupReenroll(vbasoftwareDatabase, groupID, enrollmentReenroll, options);
239
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
240
+ },
241
+ }
242
+ };
243
+
244
+ /**
245
+ * AdvGroupsApi - factory interface
246
+ * @export
247
+ */
248
+ export const AdvGroupsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
249
+ const localVarFp = AdvGroupsApiFp(configuration)
250
+ return {
251
+ /**
252
+ * Gets Group enrollment summary for the given group id.
253
+ * @summary Get Group enrollment summary information
254
+ * @param {string} vbasoftwareDatabase Target database
255
+ * @param {string} groupID Group ID
256
+ * @param {*} [options] Override http request option.
257
+ * @throws {RequiredError}
258
+ */
259
+ getGroupEnrollmentSummary(vbasoftwareDatabase: string, groupID: string, options?: any): AxiosPromise<VBAGroupEnrollmentSummaryVBAResponse> {
260
+ return localVarFp.getGroupEnrollmentSummary(vbasoftwareDatabase, groupID, options).then((request) => request(axios, basePath));
261
+ },
262
+ /**
263
+ * Disenrolls a Group and/or Division. A VBAProcess object is returned representing the process state. See VBAProcess area for more information.
264
+ * @summary Group Disenroll
265
+ * @param {string} vbasoftwareDatabase Target database
266
+ * @param {string} groupID Group ID
267
+ * @param {EnrollmentDisenrollGroup} enrollmentDisenrollGroup
268
+ * @param {*} [options] Override http request option.
269
+ * @throws {RequiredError}
270
+ */
271
+ groupDisenroll(vbasoftwareDatabase: string, groupID: string, enrollmentDisenrollGroup: EnrollmentDisenrollGroup, options?: any): AxiosPromise<VBAProcessVBAResponse> {
272
+ return localVarFp.groupDisenroll(vbasoftwareDatabase, groupID, enrollmentDisenrollGroup, options).then((request) => request(axios, basePath));
273
+ },
274
+ /**
275
+ * Re-enrolls a Group and/or Division. A VBAProcess object is returned representing the process state. See VBAProcess area for more information.
276
+ * @summary Group Reenroll
277
+ * @param {string} vbasoftwareDatabase Target database
278
+ * @param {string} groupID Group ID
279
+ * @param {EnrollmentReenroll} enrollmentReenroll
280
+ * @param {*} [options] Override http request option.
281
+ * @throws {RequiredError}
282
+ */
283
+ groupReenroll(vbasoftwareDatabase: string, groupID: string, enrollmentReenroll: EnrollmentReenroll, options?: any): AxiosPromise<VBAProcessVBAResponse> {
284
+ return localVarFp.groupReenroll(vbasoftwareDatabase, groupID, enrollmentReenroll, options).then((request) => request(axios, basePath));
285
+ },
286
+ };
287
+ };
288
+
289
+ /**
290
+ * AdvGroupsApi - interface
291
+ * @export
292
+ * @interface AdvGroupsApi
293
+ */
294
+ export interface AdvGroupsApiInterface {
295
+ /**
296
+ * Gets Group enrollment summary for the given group id.
297
+ * @summary Get Group enrollment summary information
298
+ * @param {string} vbasoftwareDatabase Target database
299
+ * @param {string} groupID Group ID
300
+ * @param {*} [options] Override http request option.
301
+ * @throws {RequiredError}
302
+ * @memberof AdvGroupsApiInterface
303
+ */
304
+ getGroupEnrollmentSummary(vbasoftwareDatabase: string, groupID: string, options?: AxiosRequestConfig): AxiosPromise<VBAGroupEnrollmentSummaryVBAResponse>;
305
+
306
+ /**
307
+ * Disenrolls a Group and/or Division. A VBAProcess object is returned representing the process state. See VBAProcess area for more information.
308
+ * @summary Group Disenroll
309
+ * @param {string} vbasoftwareDatabase Target database
310
+ * @param {string} groupID Group ID
311
+ * @param {EnrollmentDisenrollGroup} enrollmentDisenrollGroup
312
+ * @param {*} [options] Override http request option.
313
+ * @throws {RequiredError}
314
+ * @memberof AdvGroupsApiInterface
315
+ */
316
+ groupDisenroll(vbasoftwareDatabase: string, groupID: string, enrollmentDisenrollGroup: EnrollmentDisenrollGroup, options?: AxiosRequestConfig): AxiosPromise<VBAProcessVBAResponse>;
317
+
318
+ /**
319
+ * Re-enrolls a Group and/or Division. A VBAProcess object is returned representing the process state. See VBAProcess area for more information.
320
+ * @summary Group Reenroll
321
+ * @param {string} vbasoftwareDatabase Target database
322
+ * @param {string} groupID Group ID
323
+ * @param {EnrollmentReenroll} enrollmentReenroll
324
+ * @param {*} [options] Override http request option.
325
+ * @throws {RequiredError}
326
+ * @memberof AdvGroupsApiInterface
327
+ */
328
+ groupReenroll(vbasoftwareDatabase: string, groupID: string, enrollmentReenroll: EnrollmentReenroll, options?: AxiosRequestConfig): AxiosPromise<VBAProcessVBAResponse>;
329
+
330
+ }
331
+
332
+ /**
333
+ * AdvGroupsApi - object-oriented interface
334
+ * @export
335
+ * @class AdvGroupsApi
336
+ * @extends {BaseAPI}
337
+ */
338
+ export class AdvGroupsApi extends BaseAPI implements AdvGroupsApiInterface {
339
+ /**
340
+ * Gets Group enrollment summary for the given group id.
341
+ * @summary Get Group enrollment summary information
342
+ * @param {string} vbasoftwareDatabase Target database
343
+ * @param {string} groupID Group ID
344
+ * @param {*} [options] Override http request option.
345
+ * @throws {RequiredError}
346
+ * @memberof AdvGroupsApi
347
+ */
348
+ public getGroupEnrollmentSummary(vbasoftwareDatabase: string, groupID: string, options?: AxiosRequestConfig) {
349
+ return AdvGroupsApiFp(this.configuration).getGroupEnrollmentSummary(vbasoftwareDatabase, groupID, options).then((request) => request(this.axios, this.basePath));
350
+ }
351
+
352
+ /**
353
+ * Disenrolls a Group and/or Division. A VBAProcess object is returned representing the process state. See VBAProcess area for more information.
354
+ * @summary Group Disenroll
355
+ * @param {string} vbasoftwareDatabase Target database
356
+ * @param {string} groupID Group ID
357
+ * @param {EnrollmentDisenrollGroup} enrollmentDisenrollGroup
358
+ * @param {*} [options] Override http request option.
359
+ * @throws {RequiredError}
360
+ * @memberof AdvGroupsApi
361
+ */
362
+ public groupDisenroll(vbasoftwareDatabase: string, groupID: string, enrollmentDisenrollGroup: EnrollmentDisenrollGroup, options?: AxiosRequestConfig) {
363
+ return AdvGroupsApiFp(this.configuration).groupDisenroll(vbasoftwareDatabase, groupID, enrollmentDisenrollGroup, options).then((request) => request(this.axios, this.basePath));
364
+ }
365
+
366
+ /**
367
+ * Re-enrolls a Group and/or Division. A VBAProcess object is returned representing the process state. See VBAProcess area for more information.
368
+ * @summary Group Reenroll
369
+ * @param {string} vbasoftwareDatabase Target database
370
+ * @param {string} groupID Group ID
371
+ * @param {EnrollmentReenroll} enrollmentReenroll
372
+ * @param {*} [options] Override http request option.
373
+ * @throws {RequiredError}
374
+ * @memberof AdvGroupsApi
375
+ */
376
+ public groupReenroll(vbasoftwareDatabase: string, groupID: string, enrollmentReenroll: EnrollmentReenroll, options?: AxiosRequestConfig) {
377
+ return AdvGroupsApiFp(this.configuration).groupReenroll(vbasoftwareDatabase, groupID, enrollmentReenroll, options).then((request) => request(this.axios, this.basePath));
378
+ }
379
+ }