@se-uulm/snowballr-api-client 0.1.1-alpha.1909657

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.
Files changed (59) hide show
  1. package/.openapi-generator/FILES +17 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/CHANGELOG.md +9 -0
  5. package/LICENSE +674 -0
  6. package/README.md +46 -0
  7. package/dist/apis/ProjectsControllerApi.d.ts +102 -0
  8. package/dist/apis/ProjectsControllerApi.js +141 -0
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +19 -0
  11. package/dist/esm/apis/ProjectsControllerApi.d.ts +102 -0
  12. package/dist/esm/apis/ProjectsControllerApi.js +137 -0
  13. package/dist/esm/apis/index.d.ts +1 -0
  14. package/dist/esm/apis/index.js +3 -0
  15. package/dist/esm/index.d.ts +3 -0
  16. package/dist/esm/index.js +5 -0
  17. package/dist/esm/models/CreateProjectRequest.d.ts +32 -0
  18. package/dist/esm/models/CreateProjectRequest.js +41 -0
  19. package/dist/esm/models/DecisionMatrixPattern.d.ts +49 -0
  20. package/dist/esm/models/DecisionMatrixPattern.js +53 -0
  21. package/dist/esm/models/DecisionMatrixPatternEntry.d.ts +47 -0
  22. package/dist/esm/models/DecisionMatrixPatternEntry.js +51 -0
  23. package/dist/esm/models/Project.d.ts +117 -0
  24. package/dist/esm/models/Project.js +80 -0
  25. package/dist/esm/models/ReviewDecisionMatrix.d.ts +39 -0
  26. package/dist/esm/models/ReviewDecisionMatrix.js +44 -0
  27. package/dist/esm/models/index.d.ts +5 -0
  28. package/dist/esm/models/index.js +7 -0
  29. package/dist/esm/runtime.d.ts +184 -0
  30. package/dist/esm/runtime.js +334 -0
  31. package/dist/index.d.ts +3 -0
  32. package/dist/index.js +21 -0
  33. package/dist/models/CreateProjectRequest.d.ts +32 -0
  34. package/dist/models/CreateProjectRequest.js +48 -0
  35. package/dist/models/DecisionMatrixPattern.d.ts +49 -0
  36. package/dist/models/DecisionMatrixPattern.js +61 -0
  37. package/dist/models/DecisionMatrixPatternEntry.d.ts +47 -0
  38. package/dist/models/DecisionMatrixPatternEntry.js +59 -0
  39. package/dist/models/Project.d.ts +117 -0
  40. package/dist/models/Project.js +88 -0
  41. package/dist/models/ReviewDecisionMatrix.d.ts +39 -0
  42. package/dist/models/ReviewDecisionMatrix.js +51 -0
  43. package/dist/models/index.d.ts +5 -0
  44. package/dist/models/index.js +23 -0
  45. package/dist/runtime.d.ts +184 -0
  46. package/dist/runtime.js +350 -0
  47. package/package.json +22 -0
  48. package/src/apis/ProjectsControllerApi.ts +238 -0
  49. package/src/apis/index.ts +3 -0
  50. package/src/index.ts +5 -0
  51. package/src/models/CreateProjectRequest.ts +65 -0
  52. package/src/models/DecisionMatrixPattern.ts +94 -0
  53. package/src/models/DecisionMatrixPatternEntry.ts +85 -0
  54. package/src/models/Project.ts +177 -0
  55. package/src/models/ReviewDecisionMatrix.ts +81 -0
  56. package/src/models/index.ts +7 -0
  57. package/src/runtime.ts +432 -0
  58. package/tsconfig.esm.json +7 -0
  59. package/tsconfig.json +16 -0
@@ -0,0 +1,334 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * SnowballR API
5
+ * REST API for the SnowballR Application
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
+ 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
+ export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
24
+ export class Configuration {
25
+ constructor(configuration = {}) {
26
+ this.configuration = configuration;
27
+ }
28
+ set config(configuration) {
29
+ this.configuration = configuration;
30
+ }
31
+ get basePath() {
32
+ return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;
33
+ }
34
+ get fetchApi() {
35
+ return this.configuration.fetchApi;
36
+ }
37
+ get middleware() {
38
+ return this.configuration.middleware || [];
39
+ }
40
+ get queryParamsStringify() {
41
+ return this.configuration.queryParamsStringify || querystring;
42
+ }
43
+ get username() {
44
+ return this.configuration.username;
45
+ }
46
+ get password() {
47
+ return this.configuration.password;
48
+ }
49
+ get apiKey() {
50
+ const apiKey = this.configuration.apiKey;
51
+ if (apiKey) {
52
+ return typeof apiKey === 'function' ? apiKey : () => apiKey;
53
+ }
54
+ return undefined;
55
+ }
56
+ get accessToken() {
57
+ const accessToken = this.configuration.accessToken;
58
+ if (accessToken) {
59
+ return typeof accessToken === 'function' ? accessToken : () => __awaiter(this, void 0, void 0, function* () { return accessToken; });
60
+ }
61
+ return undefined;
62
+ }
63
+ get headers() {
64
+ return this.configuration.headers;
65
+ }
66
+ get credentials() {
67
+ return this.configuration.credentials;
68
+ }
69
+ }
70
+ export const DefaultConfig = new Configuration();
71
+ /**
72
+ * This is the base class for all generated API classes.
73
+ */
74
+ export class BaseAPI {
75
+ constructor(configuration = DefaultConfig) {
76
+ this.configuration = configuration;
77
+ this.fetchApi = (url, init) => __awaiter(this, void 0, void 0, function* () {
78
+ let fetchParams = { url, init };
79
+ for (const middleware of this.middleware) {
80
+ if (middleware.pre) {
81
+ fetchParams = (yield middleware.pre(Object.assign({ fetch: this.fetchApi }, fetchParams))) || fetchParams;
82
+ }
83
+ }
84
+ let response = undefined;
85
+ try {
86
+ response = yield (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
87
+ }
88
+ catch (e) {
89
+ for (const middleware of this.middleware) {
90
+ if (middleware.onError) {
91
+ response = (yield middleware.onError({
92
+ fetch: this.fetchApi,
93
+ url: fetchParams.url,
94
+ init: fetchParams.init,
95
+ error: e,
96
+ response: response ? response.clone() : undefined,
97
+ })) || response;
98
+ }
99
+ }
100
+ if (response === undefined) {
101
+ if (e instanceof Error) {
102
+ throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
103
+ }
104
+ else {
105
+ throw e;
106
+ }
107
+ }
108
+ }
109
+ for (const middleware of this.middleware) {
110
+ if (middleware.post) {
111
+ response = (yield middleware.post({
112
+ fetch: this.fetchApi,
113
+ url: fetchParams.url,
114
+ init: fetchParams.init,
115
+ response: response.clone(),
116
+ })) || response;
117
+ }
118
+ }
119
+ return response;
120
+ });
121
+ this.middleware = configuration.middleware;
122
+ }
123
+ withMiddleware(...middlewares) {
124
+ const next = this.clone();
125
+ next.middleware = next.middleware.concat(...middlewares);
126
+ return next;
127
+ }
128
+ withPreMiddleware(...preMiddlewares) {
129
+ const middlewares = preMiddlewares.map((pre) => ({ pre }));
130
+ return this.withMiddleware(...middlewares);
131
+ }
132
+ withPostMiddleware(...postMiddlewares) {
133
+ const middlewares = postMiddlewares.map((post) => ({ post }));
134
+ return this.withMiddleware(...middlewares);
135
+ }
136
+ /**
137
+ * Check if the given MIME is a JSON MIME.
138
+ * JSON MIME examples:
139
+ * application/json
140
+ * application/json; charset=UTF8
141
+ * APPLICATION/JSON
142
+ * application/vnd.company+json
143
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
144
+ * @return True if the given MIME is JSON, false otherwise.
145
+ */
146
+ isJsonMime(mime) {
147
+ if (!mime) {
148
+ return false;
149
+ }
150
+ return BaseAPI.jsonRegex.test(mime);
151
+ }
152
+ request(context, initOverrides) {
153
+ return __awaiter(this, void 0, void 0, function* () {
154
+ const { url, init } = yield this.createFetchParams(context, initOverrides);
155
+ const response = yield this.fetchApi(url, init);
156
+ if (response && (response.status >= 200 && response.status < 300)) {
157
+ return response;
158
+ }
159
+ throw new ResponseError(response, 'Response returned an error code');
160
+ });
161
+ }
162
+ createFetchParams(context, initOverrides) {
163
+ return __awaiter(this, void 0, void 0, function* () {
164
+ let url = this.configuration.basePath + context.path;
165
+ if (context.query !== undefined && Object.keys(context.query).length !== 0) {
166
+ // only add the querystring to the URL if there are query parameters.
167
+ // this is done to avoid urls ending with a "?" character which buggy webservers
168
+ // do not handle correctly sometimes.
169
+ url += '?' + this.configuration.queryParamsStringify(context.query);
170
+ }
171
+ const headers = Object.assign({}, this.configuration.headers, context.headers);
172
+ Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {});
173
+ const initOverrideFn = typeof initOverrides === "function"
174
+ ? initOverrides
175
+ : () => __awaiter(this, void 0, void 0, function* () { return initOverrides; });
176
+ const initParams = {
177
+ method: context.method,
178
+ headers,
179
+ body: context.body,
180
+ credentials: this.configuration.credentials,
181
+ };
182
+ const overriddenInit = Object.assign(Object.assign({}, initParams), (yield initOverrideFn({
183
+ init: initParams,
184
+ context,
185
+ })));
186
+ let body;
187
+ if (isFormData(overriddenInit.body)
188
+ || (overriddenInit.body instanceof URLSearchParams)
189
+ || isBlob(overriddenInit.body)) {
190
+ body = overriddenInit.body;
191
+ }
192
+ else if (this.isJsonMime(headers['Content-Type'])) {
193
+ body = JSON.stringify(overriddenInit.body);
194
+ }
195
+ else {
196
+ body = overriddenInit.body;
197
+ }
198
+ const init = Object.assign(Object.assign({}, overriddenInit), { body });
199
+ return { url, init };
200
+ });
201
+ }
202
+ /**
203
+ * Create a shallow clone of `this` by constructing a new instance
204
+ * and then shallow cloning data members.
205
+ */
206
+ clone() {
207
+ const constructor = this.constructor;
208
+ const next = new constructor(this.configuration);
209
+ next.middleware = this.middleware.slice();
210
+ return next;
211
+ }
212
+ }
213
+ BaseAPI.jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
214
+ ;
215
+ function isBlob(value) {
216
+ return typeof Blob !== 'undefined' && value instanceof Blob;
217
+ }
218
+ function isFormData(value) {
219
+ return typeof FormData !== "undefined" && value instanceof FormData;
220
+ }
221
+ export class ResponseError extends Error {
222
+ constructor(response, msg) {
223
+ super(msg);
224
+ this.response = response;
225
+ this.name = "ResponseError";
226
+ }
227
+ }
228
+ export class FetchError extends Error {
229
+ constructor(cause, msg) {
230
+ super(msg);
231
+ this.cause = cause;
232
+ this.name = "FetchError";
233
+ }
234
+ }
235
+ export class RequiredError extends Error {
236
+ constructor(field, msg) {
237
+ super(msg);
238
+ this.field = field;
239
+ this.name = "RequiredError";
240
+ }
241
+ }
242
+ export const COLLECTION_FORMATS = {
243
+ csv: ",",
244
+ ssv: " ",
245
+ tsv: "\t",
246
+ pipes: "|",
247
+ };
248
+ export function querystring(params, prefix = '') {
249
+ return Object.keys(params)
250
+ .map(key => querystringSingleKey(key, params[key], prefix))
251
+ .filter(part => part.length > 0)
252
+ .join('&');
253
+ }
254
+ function querystringSingleKey(key, value, keyPrefix = '') {
255
+ const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
256
+ if (value instanceof Array) {
257
+ const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue)))
258
+ .join(`&${encodeURIComponent(fullKey)}=`);
259
+ return `${encodeURIComponent(fullKey)}=${multiValue}`;
260
+ }
261
+ if (value instanceof Set) {
262
+ const valueAsArray = Array.from(value);
263
+ return querystringSingleKey(key, valueAsArray, keyPrefix);
264
+ }
265
+ if (value instanceof Date) {
266
+ return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
267
+ }
268
+ if (value instanceof Object) {
269
+ return querystring(value, fullKey);
270
+ }
271
+ return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
272
+ }
273
+ export function exists(json, key) {
274
+ const value = json[key];
275
+ return value !== null && value !== undefined;
276
+ }
277
+ export function mapValues(data, fn) {
278
+ const result = {};
279
+ for (const key of Object.keys(data)) {
280
+ result[key] = fn(data[key]);
281
+ }
282
+ return result;
283
+ }
284
+ export function canConsumeForm(consumes) {
285
+ for (const consume of consumes) {
286
+ if ('multipart/form-data' === consume.contentType) {
287
+ return true;
288
+ }
289
+ }
290
+ return false;
291
+ }
292
+ export class JSONApiResponse {
293
+ constructor(raw, transformer = (jsonValue) => jsonValue) {
294
+ this.raw = raw;
295
+ this.transformer = transformer;
296
+ }
297
+ value() {
298
+ return __awaiter(this, void 0, void 0, function* () {
299
+ return this.transformer(yield this.raw.json());
300
+ });
301
+ }
302
+ }
303
+ export class VoidApiResponse {
304
+ constructor(raw) {
305
+ this.raw = raw;
306
+ }
307
+ value() {
308
+ return __awaiter(this, void 0, void 0, function* () {
309
+ return undefined;
310
+ });
311
+ }
312
+ }
313
+ export class BlobApiResponse {
314
+ constructor(raw) {
315
+ this.raw = raw;
316
+ }
317
+ value() {
318
+ return __awaiter(this, void 0, void 0, function* () {
319
+ return yield this.raw.blob();
320
+ });
321
+ }
322
+ ;
323
+ }
324
+ export class TextApiResponse {
325
+ constructor(raw) {
326
+ this.raw = raw;
327
+ }
328
+ value() {
329
+ return __awaiter(this, void 0, void 0, function* () {
330
+ return yield this.raw.text();
331
+ });
332
+ }
333
+ ;
334
+ }
@@ -0,0 +1,3 @@
1
+ export * from './runtime';
2
+ export * from './apis/index';
3
+ export * from './models/index';
package/dist/index.js ADDED
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /* tslint:disable */
18
+ /* eslint-disable */
19
+ __exportStar(require("./runtime"), exports);
20
+ __exportStar(require("./apis/index"), exports);
21
+ __exportStar(require("./models/index"), exports);
@@ -0,0 +1,32 @@
1
+ /**
2
+ * SnowballR API
3
+ * REST API for the SnowballR Application
4
+ *
5
+ * The version of the OpenAPI document: v1
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface CreateProjectRequest
16
+ */
17
+ export interface CreateProjectRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CreateProjectRequest
22
+ */
23
+ name?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CreateProjectRequest interface.
27
+ */
28
+ export declare function instanceOfCreateProjectRequest(value: object): value is CreateProjectRequest;
29
+ export declare function CreateProjectRequestFromJSON(json: any): CreateProjectRequest;
30
+ export declare function CreateProjectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProjectRequest;
31
+ export declare function CreateProjectRequestToJSON(json: any): CreateProjectRequest;
32
+ export declare function CreateProjectRequestToJSONTyped(value?: CreateProjectRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * SnowballR API
6
+ * REST API for the SnowballR Application
7
+ *
8
+ * The version of the OpenAPI document: v1
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCreateProjectRequest = instanceOfCreateProjectRequest;
17
+ exports.CreateProjectRequestFromJSON = CreateProjectRequestFromJSON;
18
+ exports.CreateProjectRequestFromJSONTyped = CreateProjectRequestFromJSONTyped;
19
+ exports.CreateProjectRequestToJSON = CreateProjectRequestToJSON;
20
+ exports.CreateProjectRequestToJSONTyped = CreateProjectRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CreateProjectRequest interface.
23
+ */
24
+ function instanceOfCreateProjectRequest(value) {
25
+ return true;
26
+ }
27
+ function CreateProjectRequestFromJSON(json) {
28
+ return CreateProjectRequestFromJSONTyped(json, false);
29
+ }
30
+ function CreateProjectRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'name': json['name'] == null ? undefined : json['name'],
36
+ };
37
+ }
38
+ function CreateProjectRequestToJSON(json) {
39
+ return CreateProjectRequestToJSONTyped(json, false);
40
+ }
41
+ function CreateProjectRequestToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'name': value['name'],
47
+ };
48
+ }
@@ -0,0 +1,49 @@
1
+ /**
2
+ * SnowballR API
3
+ * REST API for the SnowballR Application
4
+ *
5
+ * The version of the OpenAPI document: v1
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 { DecisionMatrixPatternEntry } from './DecisionMatrixPatternEntry';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DecisionMatrixPattern
17
+ */
18
+ export interface DecisionMatrixPattern {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof DecisionMatrixPattern
23
+ */
24
+ decision?: DecisionMatrixPatternDecisionEnum;
25
+ /**
26
+ *
27
+ * @type {Array<DecisionMatrixPatternEntry>}
28
+ * @memberof DecisionMatrixPattern
29
+ */
30
+ entries?: Array<DecisionMatrixPatternEntry>;
31
+ }
32
+ /**
33
+ * @export
34
+ */
35
+ export declare const DecisionMatrixPatternDecisionEnum: {
36
+ readonly UNREVIEWED: "UNREVIEWED";
37
+ readonly IN_REVIEW: "IN_REVIEW";
38
+ readonly DECLINED: "DECLINED";
39
+ readonly ACCEPTED: "ACCEPTED";
40
+ };
41
+ export type DecisionMatrixPatternDecisionEnum = typeof DecisionMatrixPatternDecisionEnum[keyof typeof DecisionMatrixPatternDecisionEnum];
42
+ /**
43
+ * Check if a given object implements the DecisionMatrixPattern interface.
44
+ */
45
+ export declare function instanceOfDecisionMatrixPattern(value: object): value is DecisionMatrixPattern;
46
+ export declare function DecisionMatrixPatternFromJSON(json: any): DecisionMatrixPattern;
47
+ export declare function DecisionMatrixPatternFromJSONTyped(json: any, ignoreDiscriminator: boolean): DecisionMatrixPattern;
48
+ export declare function DecisionMatrixPatternToJSON(json: any): DecisionMatrixPattern;
49
+ export declare function DecisionMatrixPatternToJSONTyped(value?: DecisionMatrixPattern | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * SnowballR API
6
+ * REST API for the SnowballR Application
7
+ *
8
+ * The version of the OpenAPI document: v1
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DecisionMatrixPatternDecisionEnum = void 0;
17
+ exports.instanceOfDecisionMatrixPattern = instanceOfDecisionMatrixPattern;
18
+ exports.DecisionMatrixPatternFromJSON = DecisionMatrixPatternFromJSON;
19
+ exports.DecisionMatrixPatternFromJSONTyped = DecisionMatrixPatternFromJSONTyped;
20
+ exports.DecisionMatrixPatternToJSON = DecisionMatrixPatternToJSON;
21
+ exports.DecisionMatrixPatternToJSONTyped = DecisionMatrixPatternToJSONTyped;
22
+ const DecisionMatrixPatternEntry_1 = require("./DecisionMatrixPatternEntry");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.DecisionMatrixPatternDecisionEnum = {
27
+ UNREVIEWED: 'UNREVIEWED',
28
+ IN_REVIEW: 'IN_REVIEW',
29
+ DECLINED: 'DECLINED',
30
+ ACCEPTED: 'ACCEPTED'
31
+ };
32
+ /**
33
+ * Check if a given object implements the DecisionMatrixPattern interface.
34
+ */
35
+ function instanceOfDecisionMatrixPattern(value) {
36
+ return true;
37
+ }
38
+ function DecisionMatrixPatternFromJSON(json) {
39
+ return DecisionMatrixPatternFromJSONTyped(json, false);
40
+ }
41
+ function DecisionMatrixPatternFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'decision': json['decision'] == null ? undefined : json['decision'],
47
+ 'entries': json['entries'] == null ? undefined : (json['entries'].map(DecisionMatrixPatternEntry_1.DecisionMatrixPatternEntryFromJSON)),
48
+ };
49
+ }
50
+ function DecisionMatrixPatternToJSON(json) {
51
+ return DecisionMatrixPatternToJSONTyped(json, false);
52
+ }
53
+ function DecisionMatrixPatternToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'decision': value['decision'],
59
+ 'entries': value['entries'] == null ? undefined : (value['entries'].map(DecisionMatrixPatternEntry_1.DecisionMatrixPatternEntryToJSON)),
60
+ };
61
+ }
@@ -0,0 +1,47 @@
1
+ /**
2
+ * SnowballR API
3
+ * REST API for the SnowballR Application
4
+ *
5
+ * The version of the OpenAPI document: v1
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface DecisionMatrixPatternEntry
16
+ */
17
+ export interface DecisionMatrixPatternEntry {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof DecisionMatrixPatternEntry
22
+ */
23
+ decision?: DecisionMatrixPatternEntryDecisionEnum;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof DecisionMatrixPatternEntry
28
+ */
29
+ count?: number;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const DecisionMatrixPatternEntryDecisionEnum: {
35
+ readonly DECLINED: "DECLINED";
36
+ readonly MAYBE: "MAYBE";
37
+ readonly ACCEPTED: "ACCEPTED";
38
+ };
39
+ export type DecisionMatrixPatternEntryDecisionEnum = typeof DecisionMatrixPatternEntryDecisionEnum[keyof typeof DecisionMatrixPatternEntryDecisionEnum];
40
+ /**
41
+ * Check if a given object implements the DecisionMatrixPatternEntry interface.
42
+ */
43
+ export declare function instanceOfDecisionMatrixPatternEntry(value: object): value is DecisionMatrixPatternEntry;
44
+ export declare function DecisionMatrixPatternEntryFromJSON(json: any): DecisionMatrixPatternEntry;
45
+ export declare function DecisionMatrixPatternEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): DecisionMatrixPatternEntry;
46
+ export declare function DecisionMatrixPatternEntryToJSON(json: any): DecisionMatrixPatternEntry;
47
+ export declare function DecisionMatrixPatternEntryToJSONTyped(value?: DecisionMatrixPatternEntry | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * SnowballR API
6
+ * REST API for the SnowballR Application
7
+ *
8
+ * The version of the OpenAPI document: v1
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DecisionMatrixPatternEntryDecisionEnum = void 0;
17
+ exports.instanceOfDecisionMatrixPatternEntry = instanceOfDecisionMatrixPatternEntry;
18
+ exports.DecisionMatrixPatternEntryFromJSON = DecisionMatrixPatternEntryFromJSON;
19
+ exports.DecisionMatrixPatternEntryFromJSONTyped = DecisionMatrixPatternEntryFromJSONTyped;
20
+ exports.DecisionMatrixPatternEntryToJSON = DecisionMatrixPatternEntryToJSON;
21
+ exports.DecisionMatrixPatternEntryToJSONTyped = DecisionMatrixPatternEntryToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.DecisionMatrixPatternEntryDecisionEnum = {
26
+ DECLINED: 'DECLINED',
27
+ MAYBE: 'MAYBE',
28
+ ACCEPTED: 'ACCEPTED'
29
+ };
30
+ /**
31
+ * Check if a given object implements the DecisionMatrixPatternEntry interface.
32
+ */
33
+ function instanceOfDecisionMatrixPatternEntry(value) {
34
+ return true;
35
+ }
36
+ function DecisionMatrixPatternEntryFromJSON(json) {
37
+ return DecisionMatrixPatternEntryFromJSONTyped(json, false);
38
+ }
39
+ function DecisionMatrixPatternEntryFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'decision': json['decision'] == null ? undefined : json['decision'],
45
+ 'count': json['count'] == null ? undefined : json['count'],
46
+ };
47
+ }
48
+ function DecisionMatrixPatternEntryToJSON(json) {
49
+ return DecisionMatrixPatternEntryToJSONTyped(json, false);
50
+ }
51
+ function DecisionMatrixPatternEntryToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'decision': value['decision'],
57
+ 'count': value['count'],
58
+ };
59
+ }