@lambdaorm/client 0.7.48

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 (116) hide show
  1. package/LICENSE/home/runner/work/core/core/LICENSE +9 -0
  2. package/README.md +201 -0
  3. package/application/IOrm.d.ts +65 -0
  4. package/application/IOrm.d.ts.map +1 -0
  5. package/application/IOrm.js +3 -0
  6. package/application/IOrm.js.map +1 -0
  7. package/application/index.d.ts +3 -0
  8. package/application/index.d.ts.map +1 -0
  9. package/application/index.js +19 -0
  10. package/application/index.js.map +1 -0
  11. package/application/services/GeneralService.d.ts +10 -0
  12. package/application/services/GeneralService.d.ts.map +1 -0
  13. package/application/services/GeneralService.js +3 -0
  14. package/application/services/GeneralService.js.map +1 -0
  15. package/application/services/QueryService.d.ts +50 -0
  16. package/application/services/QueryService.d.ts.map +1 -0
  17. package/application/services/QueryService.js +3 -0
  18. package/application/services/QueryService.js.map +1 -0
  19. package/application/services/SchemaService.d.ts +27 -0
  20. package/application/services/SchemaService.d.ts.map +1 -0
  21. package/application/services/SchemaService.js +3 -0
  22. package/application/services/SchemaService.js.map +1 -0
  23. package/application/services/StageService.d.ts +7 -0
  24. package/application/services/StageService.d.ts.map +1 -0
  25. package/application/services/StageService.js +3 -0
  26. package/application/services/StageService.js.map +1 -0
  27. package/application/services/index.d.ts +5 -0
  28. package/application/services/index.d.ts.map +1 -0
  29. package/application/services/index.js +21 -0
  30. package/application/services/index.js.map +1 -0
  31. package/domain/actions.d.ts +17 -0
  32. package/domain/actions.d.ts.map +1 -0
  33. package/domain/actions.js +38 -0
  34. package/domain/actions.js.map +1 -0
  35. package/domain/configuration.d.ts +84 -0
  36. package/domain/configuration.d.ts.map +1 -0
  37. package/domain/configuration.js +43 -0
  38. package/domain/configuration.js.map +1 -0
  39. package/domain/index.d.ts +5 -0
  40. package/domain/index.d.ts.map +1 -0
  41. package/domain/index.js +21 -0
  42. package/domain/index.js.map +1 -0
  43. package/domain/model.d.ts +121 -0
  44. package/domain/model.d.ts.map +1 -0
  45. package/domain/model.js +3 -0
  46. package/domain/model.js.map +1 -0
  47. package/domain/schema.d.ts +11 -0
  48. package/domain/schema.d.ts.map +1 -0
  49. package/domain/schema.js +3 -0
  50. package/domain/schema.js.map +1 -0
  51. package/index.d.ts +6 -0
  52. package/index.d.ts.map +1 -0
  53. package/index.js +24 -0
  54. package/index.js.map +1 -0
  55. package/infrastructure/adapters/GeneralApiService.d.ts +14 -0
  56. package/infrastructure/adapters/GeneralApiService.d.ts.map +1 -0
  57. package/infrastructure/adapters/GeneralApiService.js +27 -0
  58. package/infrastructure/adapters/GeneralApiService.js.map +1 -0
  59. package/infrastructure/adapters/QueryApiService.d.ts +63 -0
  60. package/infrastructure/adapters/QueryApiService.d.ts.map +1 -0
  61. package/infrastructure/adapters/QueryApiService.js +66 -0
  62. package/infrastructure/adapters/QueryApiService.js.map +1 -0
  63. package/infrastructure/adapters/SchemaApiService.d.ts +31 -0
  64. package/infrastructure/adapters/SchemaApiService.d.ts.map +1 -0
  65. package/infrastructure/adapters/SchemaApiService.js +71 -0
  66. package/infrastructure/adapters/SchemaApiService.js.map +1 -0
  67. package/infrastructure/adapters/StageApiService.d.ts +11 -0
  68. package/infrastructure/adapters/StageApiService.d.ts.map +1 -0
  69. package/infrastructure/adapters/StageApiService.js +23 -0
  70. package/infrastructure/adapters/StageApiService.js.map +1 -0
  71. package/infrastructure/adapters/orm.d.ts +78 -0
  72. package/infrastructure/adapters/orm.d.ts.map +1 -0
  73. package/infrastructure/adapters/orm.js +104 -0
  74. package/infrastructure/adapters/orm.js.map +1 -0
  75. package/infrastructure/api/base.d.ts +55 -0
  76. package/infrastructure/api/base.d.ts.map +1 -0
  77. package/infrastructure/api/base.js +61 -0
  78. package/infrastructure/api/base.js.map +1 -0
  79. package/infrastructure/api/common.d.ts +66 -0
  80. package/infrastructure/api/common.d.ts.map +1 -0
  81. package/infrastructure/api/common.js +138 -0
  82. package/infrastructure/api/common.js.map +1 -0
  83. package/infrastructure/api/generalApi.d.ts +130 -0
  84. package/infrastructure/api/generalApi.d.ts.map +1 -0
  85. package/infrastructure/api/generalApi.js +248 -0
  86. package/infrastructure/api/generalApi.js.map +1 -0
  87. package/infrastructure/api/index.d.ts +5 -0
  88. package/infrastructure/api/index.d.ts.map +1 -0
  89. package/infrastructure/api/index.js +21 -0
  90. package/infrastructure/api/index.js.map +1 -0
  91. package/infrastructure/api/queryApi.d.ts +220 -0
  92. package/infrastructure/api/queryApi.d.ts.map +1 -0
  93. package/infrastructure/api/queryApi.js +408 -0
  94. package/infrastructure/api/queryApi.js.map +1 -0
  95. package/infrastructure/api/schemaApi.d.ts +440 -0
  96. package/infrastructure/api/schemaApi.d.ts.map +1 -0
  97. package/infrastructure/api/schemaApi.js +847 -0
  98. package/infrastructure/api/schemaApi.js.map +1 -0
  99. package/infrastructure/api/stageApi.d.ts +122 -0
  100. package/infrastructure/api/stageApi.d.ts.map +1 -0
  101. package/infrastructure/api/stageApi.js +227 -0
  102. package/infrastructure/api/stageApi.js.map +1 -0
  103. package/infrastructure/index.d.ts +4 -0
  104. package/infrastructure/index.d.ts.map +1 -0
  105. package/infrastructure/index.js +20 -0
  106. package/infrastructure/index.js.map +1 -0
  107. package/infrastructure/library.d.ts +8 -0
  108. package/infrastructure/library.d.ts.map +1 -0
  109. package/infrastructure/library.js +31 -0
  110. package/infrastructure/library.js.map +1 -0
  111. package/infrastructure/repository.d.ts +40 -0
  112. package/infrastructure/repository.d.ts.map +1 -0
  113. package/infrastructure/repository.js +88 -0
  114. package/infrastructure/repository.js.map +1 -0
  115. package/jest-config.json +20 -0
  116. package/package.json +50 -0
@@ -0,0 +1,847 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SchemaApi = exports.SchemaApiFactory = exports.SchemaApiFp = exports.SchemaApiAxiosParamCreator = void 0;
7
+ const axios_1 = __importDefault(require("axios"));
8
+ const common_1 = require("./common");
9
+ const base_1 = require("./base");
10
+ /**
11
+ * SchemaApi - axios parameter creator
12
+ * @export
13
+ */
14
+ const SchemaApiAxiosParamCreator = function (configuration) {
15
+ return {
16
+ /**
17
+ *
18
+ * @param {*} [options] Override http request option.
19
+ * @throws {RequiredError}
20
+ */
21
+ version: async (options = {}) => {
22
+ const localVarPath = '/version';
23
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
24
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
25
+ let baseOptions;
26
+ if (configuration) {
27
+ baseOptions = configuration.baseOptions;
28
+ }
29
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
30
+ const localVarHeaderParameter = {};
31
+ const localVarQueryParameter = {};
32
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
33
+ const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
35
+ return {
36
+ url: (0, common_1.toPathString)(localVarUrlObj),
37
+ options: localVarRequestOptions
38
+ };
39
+ },
40
+ /**
41
+ *
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ schema: async (options = {}) => {
46
+ const localVarPath = '/schema';
47
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
48
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
49
+ let baseOptions;
50
+ if (configuration) {
51
+ baseOptions = configuration.baseOptions;
52
+ }
53
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
54
+ const localVarHeaderParameter = {};
55
+ const localVarQueryParameter = {};
56
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
57
+ const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
58
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
59
+ return {
60
+ url: (0, common_1.toPathString)(localVarUrlObj),
61
+ options: localVarRequestOptions
62
+ };
63
+ },
64
+ /**
65
+ *
66
+ * @param {*} [options] Override http request option.
67
+ * @throws {RequiredError}
68
+ */
69
+ domain: async (options = {}) => {
70
+ const localVarPath = '/domain';
71
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
72
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
73
+ let baseOptions;
74
+ if (configuration) {
75
+ baseOptions = configuration.baseOptions;
76
+ }
77
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
78
+ const localVarHeaderParameter = {};
79
+ const localVarQueryParameter = {};
80
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
81
+ const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
82
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
83
+ return {
84
+ url: (0, common_1.toPathString)(localVarUrlObj),
85
+ options: localVarRequestOptions
86
+ };
87
+ },
88
+ /**
89
+ *
90
+ * @param {*} [options] Override http request option.
91
+ * @throws {RequiredError}
92
+ */
93
+ views: async (options = {}) => {
94
+ const localVarPath = '/views';
95
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
96
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
97
+ let baseOptions;
98
+ if (configuration) {
99
+ baseOptions = configuration.baseOptions;
100
+ }
101
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
102
+ const localVarHeaderParameter = {};
103
+ const localVarQueryParameter = {};
104
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
105
+ const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
106
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
107
+ return {
108
+ url: (0, common_1.toPathString)(localVarUrlObj),
109
+ options: localVarRequestOptions
110
+ };
111
+ },
112
+ /**
113
+ *
114
+ * @param {string} _enum
115
+ * @param {*} [options] Override http request option.
116
+ * @throws {RequiredError}
117
+ */
118
+ _enum: async (_enum, options = {}) => {
119
+ // verify required parameter '_enum' is not null or undefined
120
+ (0, common_1.assertParamExists)('_enum', '_enum', _enum);
121
+ const localVarPath = '/enums/{enum}'
122
+ .replace(`{${'enum'}}`, encodeURIComponent(String(_enum)));
123
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
124
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
125
+ let baseOptions;
126
+ if (configuration) {
127
+ baseOptions = configuration.baseOptions;
128
+ }
129
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
130
+ const localVarHeaderParameter = {};
131
+ const localVarQueryParameter = {};
132
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
+ const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
135
+ return {
136
+ url: (0, common_1.toPathString)(localVarUrlObj),
137
+ options: localVarRequestOptions
138
+ };
139
+ },
140
+ /**
141
+ *
142
+ * @param {*} [options] Override http request option.
143
+ * @throws {RequiredError}
144
+ */
145
+ sources: async (options = {}) => {
146
+ const localVarPath = '/sources';
147
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
148
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
149
+ let baseOptions;
150
+ if (configuration) {
151
+ baseOptions = configuration.baseOptions;
152
+ }
153
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
154
+ const localVarHeaderParameter = {};
155
+ const localVarQueryParameter = {};
156
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
157
+ const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
158
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
159
+ return {
160
+ url: (0, common_1.toPathString)(localVarUrlObj),
161
+ options: localVarRequestOptions
162
+ };
163
+ },
164
+ /**
165
+ *
166
+ * @param {string} source
167
+ * @param {*} [options] Override http request option.
168
+ * @throws {RequiredError}
169
+ */
170
+ source: async (source, options = {}) => {
171
+ // verify required parameter 'source' is not null or undefined
172
+ (0, common_1.assertParamExists)('source', 'source', source);
173
+ const localVarPath = '/sources/{source}'
174
+ .replace(`{${'source'}}`, encodeURIComponent(String(source)));
175
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
176
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
177
+ let baseOptions;
178
+ if (configuration) {
179
+ baseOptions = configuration.baseOptions;
180
+ }
181
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
182
+ const localVarHeaderParameter = {};
183
+ const localVarQueryParameter = {};
184
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
185
+ const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
186
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
187
+ return {
188
+ url: (0, common_1.toPathString)(localVarUrlObj),
189
+ options: localVarRequestOptions
190
+ };
191
+ },
192
+ /**
193
+ *
194
+ * @param {*} [options] Override http request option.
195
+ * @throws {RequiredError}
196
+ */
197
+ entities: async (options = {}) => {
198
+ const localVarPath = '/entities';
199
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
200
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
201
+ let baseOptions;
202
+ if (configuration) {
203
+ baseOptions = configuration.baseOptions;
204
+ }
205
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
206
+ const localVarHeaderParameter = {};
207
+ const localVarQueryParameter = {};
208
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
209
+ const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
210
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
211
+ return {
212
+ url: (0, common_1.toPathString)(localVarUrlObj),
213
+ options: localVarRequestOptions
214
+ };
215
+ },
216
+ /**
217
+ *
218
+ * @param {string} entity
219
+ * @param {*} [options] Override http request option.
220
+ * @throws {RequiredError}
221
+ */
222
+ entity: async (entity, options = {}) => {
223
+ // verify required parameter 'entity' is not null or undefined
224
+ (0, common_1.assertParamExists)('entity', 'entity', entity);
225
+ const localVarPath = '/entities/{entity}'
226
+ .replace(`{${'entity'}}`, encodeURIComponent(String(entity)));
227
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
228
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
229
+ let baseOptions;
230
+ if (configuration) {
231
+ baseOptions = configuration.baseOptions;
232
+ }
233
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
234
+ const localVarHeaderParameter = {};
235
+ const localVarQueryParameter = {};
236
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
237
+ const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
238
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
239
+ return {
240
+ url: (0, common_1.toPathString)(localVarUrlObj),
241
+ options: localVarRequestOptions
242
+ };
243
+ },
244
+ /**
245
+ *
246
+ * @param {string} mapping
247
+ * @param {string} entity
248
+ * @param {*} [options] Override http request option.
249
+ * @throws {RequiredError}
250
+ */
251
+ entityMapping: async (mapping, entity, options = {}) => {
252
+ // verify required parameter 'mapping' is not null or undefined
253
+ (0, common_1.assertParamExists)('entityMapping', 'mapping', mapping);
254
+ // verify required parameter 'entity' is not null or undefined
255
+ (0, common_1.assertParamExists)('entityMapping', 'entity', entity);
256
+ const localVarPath = '/mappings/{mapping}/{entity}'
257
+ .replace(`{${'mapping'}}`, encodeURIComponent(String(mapping)))
258
+ .replace(`{${'entity'}}`, encodeURIComponent(String(entity)));
259
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
260
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
261
+ let baseOptions;
262
+ if (configuration) {
263
+ baseOptions = configuration.baseOptions;
264
+ }
265
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
266
+ const localVarHeaderParameter = {};
267
+ const localVarQueryParameter = {};
268
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
269
+ const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
270
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
271
+ return {
272
+ url: (0, common_1.toPathString)(localVarUrlObj),
273
+ options: localVarRequestOptions
274
+ };
275
+ },
276
+ /**
277
+ *
278
+ * @param {*} [options] Override http request option.
279
+ * @throws {RequiredError}
280
+ */
281
+ enums: async (options = {}) => {
282
+ const localVarPath = '/enums';
283
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
284
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
285
+ let baseOptions;
286
+ if (configuration) {
287
+ baseOptions = configuration.baseOptions;
288
+ }
289
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
290
+ const localVarHeaderParameter = {};
291
+ const localVarQueryParameter = {};
292
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
293
+ const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
294
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
295
+ return {
296
+ url: (0, common_1.toPathString)(localVarUrlObj),
297
+ options: localVarRequestOptions
298
+ };
299
+ },
300
+ /**
301
+ *
302
+ * @param {string} mapping
303
+ * @param {*} [options] Override http request option.
304
+ * @throws {RequiredError}
305
+ */
306
+ mapping: async (mapping, options = {}) => {
307
+ // verify required parameter 'mapping' is not null or undefined
308
+ (0, common_1.assertParamExists)('mapping', 'mapping', mapping);
309
+ const localVarPath = '/mappings/{mapping}'
310
+ .replace(`{${'mapping'}}`, encodeURIComponent(String(mapping)));
311
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
312
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
313
+ let baseOptions;
314
+ if (configuration) {
315
+ baseOptions = configuration.baseOptions;
316
+ }
317
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
318
+ const localVarHeaderParameter = {};
319
+ const localVarQueryParameter = {};
320
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
321
+ const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
322
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
323
+ return {
324
+ url: (0, common_1.toPathString)(localVarUrlObj),
325
+ options: localVarRequestOptions
326
+ };
327
+ },
328
+ /**
329
+ *
330
+ * @param {*} [options] Override http request option.
331
+ * @throws {RequiredError}
332
+ */
333
+ mappings: async (options = {}) => {
334
+ const localVarPath = '/mappings';
335
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
336
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
337
+ let baseOptions;
338
+ if (configuration) {
339
+ baseOptions = configuration.baseOptions;
340
+ }
341
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
342
+ const localVarHeaderParameter = {};
343
+ const localVarQueryParameter = {};
344
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
345
+ const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
346
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
347
+ return {
348
+ url: (0, common_1.toPathString)(localVarUrlObj),
349
+ options: localVarRequestOptions
350
+ };
351
+ },
352
+ /**
353
+ *
354
+ * @param {string} stage
355
+ * @param {*} [options] Override http request option.
356
+ * @throws {RequiredError}
357
+ */
358
+ stage: async (stage, options = {}) => {
359
+ // verify required parameter 'stage' is not null or undefined
360
+ (0, common_1.assertParamExists)('stage', 'stage', stage);
361
+ const localVarPath = '/stages/{stage}'
362
+ .replace(`{${'stage'}}`, encodeURIComponent(String(stage)));
363
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
364
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
365
+ let baseOptions;
366
+ if (configuration) {
367
+ baseOptions = configuration.baseOptions;
368
+ }
369
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
370
+ const localVarHeaderParameter = {};
371
+ const localVarQueryParameter = {};
372
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
373
+ const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
374
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
375
+ return {
376
+ url: (0, common_1.toPathString)(localVarUrlObj),
377
+ options: localVarRequestOptions
378
+ };
379
+ },
380
+ /**
381
+ *
382
+ * @param {*} [options] Override http request option.
383
+ * @throws {RequiredError}
384
+ */
385
+ stages: async (options = {}) => {
386
+ const localVarPath = '/stages';
387
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
388
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
389
+ let baseOptions;
390
+ if (configuration) {
391
+ baseOptions = configuration.baseOptions;
392
+ }
393
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
394
+ const localVarHeaderParameter = {};
395
+ const localVarQueryParameter = {};
396
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
397
+ const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
398
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
399
+ return {
400
+ url: (0, common_1.toPathString)(localVarUrlObj),
401
+ options: localVarRequestOptions
402
+ };
403
+ }
404
+ };
405
+ };
406
+ exports.SchemaApiAxiosParamCreator = SchemaApiAxiosParamCreator;
407
+ /**
408
+ * SchemaApi - functional programming interface
409
+ * @export
410
+ */
411
+ const SchemaApiFp = function (configuration) {
412
+ const localVarAxiosParamCreator = (0, exports.SchemaApiAxiosParamCreator)(configuration);
413
+ return {
414
+ /**
415
+ *
416
+ * @param {*} [options] Override http request option.
417
+ * @throws {RequiredError}
418
+ */
419
+ async version(options) {
420
+ const localVarAxiosArgs = await localVarAxiosParamCreator.version(options);
421
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, configuration);
422
+ },
423
+ /**
424
+ *
425
+ * @param {*} [options] Override http request option.
426
+ * @throws {RequiredError}
427
+ */
428
+ async schema(options) {
429
+ const localVarAxiosArgs = await localVarAxiosParamCreator.schema(options);
430
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, configuration);
431
+ },
432
+ /**
433
+ *
434
+ * @param {*} [options] Override http request option.
435
+ * @throws {RequiredError}
436
+ */
437
+ async domain(options) {
438
+ const localVarAxiosArgs = await localVarAxiosParamCreator.domain(options);
439
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, configuration);
440
+ },
441
+ /**
442
+ *
443
+ * @param {*} [options] Override http request option.
444
+ * @throws {RequiredError}
445
+ */
446
+ async views(options) {
447
+ const localVarAxiosArgs = await localVarAxiosParamCreator.views(options);
448
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, configuration);
449
+ },
450
+ /**
451
+ *
452
+ * @param {string} _enum
453
+ * @param {*} [options] Override http request option.
454
+ * @throws {RequiredError}
455
+ */
456
+ async _enum(_enum, options) {
457
+ const localVarAxiosArgs = await localVarAxiosParamCreator._enum(_enum, options);
458
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, configuration);
459
+ },
460
+ /**
461
+ *
462
+ * @param {*} [options] Override http request option.
463
+ * @throws {RequiredError}
464
+ */
465
+ async sources(options) {
466
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sources(options);
467
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, configuration);
468
+ },
469
+ /**
470
+ *
471
+ * @param {string} source
472
+ * @param {*} [options] Override http request option.
473
+ * @throws {RequiredError}
474
+ */
475
+ async source(source, options) {
476
+ const localVarAxiosArgs = await localVarAxiosParamCreator.source(source, options);
477
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, configuration);
478
+ },
479
+ /**
480
+ *
481
+ * @param {*} [options] Override http request option.
482
+ * @throws {RequiredError}
483
+ */
484
+ async entities(options) {
485
+ const localVarAxiosArgs = await localVarAxiosParamCreator.entities(options);
486
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, configuration);
487
+ },
488
+ /**
489
+ *
490
+ * @param {string} entity
491
+ * @param {*} [options] Override http request option.
492
+ * @throws {RequiredError}
493
+ */
494
+ async entity(entity, options) {
495
+ const localVarAxiosArgs = await localVarAxiosParamCreator.entity(entity, options);
496
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, configuration);
497
+ },
498
+ /**
499
+ *
500
+ * @param {string} mapping
501
+ * @param {string} entity
502
+ * @param {*} [options] Override http request option.
503
+ * @throws {RequiredError}
504
+ */
505
+ async entityMapping(mapping, entity, options) {
506
+ const localVarAxiosArgs = await localVarAxiosParamCreator.entityMapping(mapping, entity, options);
507
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, configuration);
508
+ },
509
+ /**
510
+ *
511
+ * @param {*} [options] Override http request option.
512
+ * @throws {RequiredError}
513
+ */
514
+ async enums(options) {
515
+ const localVarAxiosArgs = await localVarAxiosParamCreator.enums(options);
516
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, configuration);
517
+ },
518
+ /**
519
+ *
520
+ * @param {string} mapping
521
+ * @param {*} [options] Override http request option.
522
+ * @throws {RequiredError}
523
+ */
524
+ async mapping(mapping, options) {
525
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mapping(mapping, options);
526
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, configuration);
527
+ },
528
+ /**
529
+ *
530
+ * @param {*} [options] Override http request option.
531
+ * @throws {RequiredError}
532
+ */
533
+ async mappings(options) {
534
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mappings(options);
535
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, configuration);
536
+ },
537
+ /**
538
+ *
539
+ * @param {string} stage
540
+ * @param {*} [options] Override http request option.
541
+ * @throws {RequiredError}
542
+ */
543
+ async stage(stage, options) {
544
+ const localVarAxiosArgs = await localVarAxiosParamCreator.stage(stage, options);
545
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, configuration);
546
+ },
547
+ /**
548
+ *
549
+ * @param {*} [options] Override http request option.
550
+ * @throws {RequiredError}
551
+ */
552
+ async stages(options) {
553
+ const localVarAxiosArgs = await localVarAxiosParamCreator.stages(options);
554
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, configuration);
555
+ }
556
+ };
557
+ };
558
+ exports.SchemaApiFp = SchemaApiFp;
559
+ /**
560
+ * SchemaApi - factory interface
561
+ * @export
562
+ */
563
+ const SchemaApiFactory = function (configuration, axios) {
564
+ const localVarFp = (0, exports.SchemaApiFp)(configuration);
565
+ return {
566
+ /**
567
+ *
568
+ * @param {*} [options] Override http request option.
569
+ * @throws {RequiredError}
570
+ */
571
+ version(options) {
572
+ return localVarFp.version(options).then((request) => request(axios, configuration.basePath));
573
+ },
574
+ /**
575
+ *
576
+ * @param {*} [options] Override http request option.
577
+ * @throws {RequiredError}
578
+ */
579
+ schema(options) {
580
+ return localVarFp.schema(options).then((request) => request(axios, configuration.basePath));
581
+ },
582
+ /**
583
+ *
584
+ * @param {*} [options] Override http request option.
585
+ * @throws {RequiredError}
586
+ */
587
+ domain(options) {
588
+ return localVarFp.domain(options).then((request) => request(axios, configuration.basePath));
589
+ },
590
+ /**
591
+ *
592
+ * @param {*} [options] Override http request option.
593
+ * @throws {RequiredError}
594
+ */
595
+ views(options) {
596
+ return localVarFp.views(options).then((request) => request(axios, configuration.basePath));
597
+ },
598
+ /**
599
+ *
600
+ * @param {string} _enum
601
+ * @param {*} [options] Override http request option.
602
+ * @throws {RequiredError}
603
+ */
604
+ _enum(_enum, options) {
605
+ return localVarFp._enum(_enum, options).then((request) => request(axios, configuration.basePath));
606
+ },
607
+ /**
608
+ *
609
+ * @param {*} [options] Override http request option.
610
+ * @throws {RequiredError}
611
+ */
612
+ sources(options) {
613
+ return localVarFp.sources(options).then((request) => request(axios, configuration.basePath));
614
+ },
615
+ /**
616
+ *
617
+ * @param {string} source
618
+ * @param {*} [options] Override http request option.
619
+ * @throws {RequiredError}
620
+ */
621
+ source(source, options) {
622
+ return localVarFp.source(source, options).then((request) => request(axios, configuration.basePath));
623
+ },
624
+ /**
625
+ *
626
+ * @param {*} [options] Override http request option.
627
+ * @throws {RequiredError}
628
+ */
629
+ entities(options) {
630
+ return localVarFp.entities(options).then((request) => request(axios, configuration.basePath));
631
+ },
632
+ /**
633
+ *
634
+ * @param {string} entity
635
+ * @param {*} [options] Override http request option.
636
+ * @throws {RequiredError}
637
+ */
638
+ entity(entity, options) {
639
+ return localVarFp.entity(entity, options).then((request) => request(axios, configuration.basePath));
640
+ },
641
+ /**
642
+ *
643
+ * @param {string} mapping
644
+ * @param {string} entity
645
+ * @param {*} [options] Override http request option.
646
+ * @throws {RequiredError}
647
+ */
648
+ entityMapping(mapping, entity, options) {
649
+ return localVarFp.entityMapping(mapping, entity, options).then((request) => request(axios, configuration.basePath));
650
+ },
651
+ /**
652
+ *
653
+ * @param {*} [options] Override http request option.
654
+ * @throws {RequiredError}
655
+ */
656
+ enums(options) {
657
+ return localVarFp.enums(options).then((request) => request(axios, configuration.basePath));
658
+ },
659
+ /**
660
+ *
661
+ * @param {string} mapping
662
+ * @param {*} [options] Override http request option.
663
+ * @throws {RequiredError}
664
+ */
665
+ mapping(mapping, options) {
666
+ return localVarFp.mapping(mapping, options).then((request) => request(axios, configuration.basePath));
667
+ },
668
+ /**
669
+ *
670
+ * @param {*} [options] Override http request option.
671
+ * @throws {RequiredError}
672
+ */
673
+ mappings(options) {
674
+ return localVarFp.mappings(options).then((request) => request(axios, configuration.basePath));
675
+ },
676
+ /**
677
+ *
678
+ * @param {string} stage
679
+ * @param {*} [options] Override http request option.
680
+ * @throws {RequiredError}
681
+ */
682
+ stage(stage, options) {
683
+ return localVarFp.stage(stage, options).then((request) => request(axios, configuration.basePath));
684
+ },
685
+ /**
686
+ *
687
+ * @param {*} [options] Override http request option.
688
+ * @throws {RequiredError}
689
+ */
690
+ stages(options) {
691
+ return localVarFp.stages(options).then((request) => request(axios, configuration.basePath));
692
+ }
693
+ };
694
+ };
695
+ exports.SchemaApiFactory = SchemaApiFactory;
696
+ /**
697
+ * SchemaApi - object-oriented interface
698
+ * @export
699
+ * @class SchemaApi
700
+ * @extends {BaseAPI}
701
+ */
702
+ class SchemaApi extends base_1.BaseAPI {
703
+ /**
704
+ *
705
+ * @param {*} [options] Override http request option.
706
+ * @throws {RequiredError}
707
+ * @memberof SchemaApi
708
+ */
709
+ version(options) {
710
+ return (0, exports.SchemaApiFp)(this.configuration).version(options).then((request) => request(this.axios, this.configuration.basePath));
711
+ }
712
+ /**
713
+ *
714
+ * @param {*} [options] Override http request option.
715
+ * @throws {RequiredError}
716
+ * @memberof SchemaApi
717
+ */
718
+ schema(options) {
719
+ return (0, exports.SchemaApiFp)(this.configuration).schema(options).then((request) => request(this.axios, this.configuration.basePath));
720
+ }
721
+ /**
722
+ *
723
+ * @param {*} [options] Override http request option.
724
+ * @throws {RequiredError}
725
+ * @memberof SchemaApi
726
+ */
727
+ domain(options) {
728
+ return (0, exports.SchemaApiFp)(this.configuration).domain(options).then((request) => request(this.axios, this.configuration.basePath));
729
+ }
730
+ /**
731
+ *
732
+ * @param {*} [options] Override http request option.
733
+ * @throws {RequiredError}
734
+ * @memberof SchemaApi
735
+ */
736
+ views(options) {
737
+ return (0, exports.SchemaApiFp)(this.configuration).views(options).then((request) => request(this.axios, this.configuration.basePath));
738
+ }
739
+ /**
740
+ *
741
+ * @param {string} _enum
742
+ * @param {*} [options] Override http request option.
743
+ * @throws {RequiredError}
744
+ * @memberof SchemaApi
745
+ */
746
+ _enum(_enum, options) {
747
+ return (0, exports.SchemaApiFp)(this.configuration)._enum(_enum, options).then((request) => request(this.axios, this.configuration.basePath));
748
+ }
749
+ /**
750
+ *
751
+ * @param {*} [options] Override http request option.
752
+ * @throws {RequiredError}
753
+ * @memberof SchemaApi
754
+ */
755
+ sources(options) {
756
+ return (0, exports.SchemaApiFp)(this.configuration).sources(options).then((request) => request(this.axios, this.configuration.basePath));
757
+ }
758
+ /**
759
+ *
760
+ * @param {string} source
761
+ * @param {*} [options] Override http request option.
762
+ * @throws {RequiredError}
763
+ * @memberof SchemaApi
764
+ */
765
+ source(source, options) {
766
+ return (0, exports.SchemaApiFp)(this.configuration).source(source, options).then((request) => request(this.axios, this.configuration.basePath));
767
+ }
768
+ /**
769
+ *
770
+ * @param {*} [options] Override http request option.
771
+ * @throws {RequiredError}
772
+ * @memberof SchemaApi
773
+ */
774
+ entities(options) {
775
+ return (0, exports.SchemaApiFp)(this.configuration).entities(options).then((request) => request(this.axios, this.configuration.basePath));
776
+ }
777
+ /**
778
+ *
779
+ * @param {string} entity
780
+ * @param {*} [options] Override http request option.
781
+ * @throws {RequiredError}
782
+ * @memberof SchemaApi
783
+ */
784
+ entity(entity, options) {
785
+ return (0, exports.SchemaApiFp)(this.configuration).entity(entity, options).then((request) => request(this.axios, this.configuration.basePath));
786
+ }
787
+ /**
788
+ *
789
+ * @param {string} mapping
790
+ * @param {string} entity
791
+ * @param {*} [options] Override http request option.
792
+ * @throws {RequiredError}
793
+ * @memberof SchemaApi
794
+ */
795
+ entityMapping(mapping, entity, options) {
796
+ return (0, exports.SchemaApiFp)(this.configuration).entityMapping(mapping, entity, options).then((request) => request(this.axios, this.configuration.basePath));
797
+ }
798
+ /**
799
+ *
800
+ * @param {*} [options] Override http request option.
801
+ * @throws {RequiredError}
802
+ * @memberof SchemaApi
803
+ */
804
+ enums(options) {
805
+ return (0, exports.SchemaApiFp)(this.configuration).enums(options).then((request) => request(this.axios, this.configuration.basePath));
806
+ }
807
+ /**
808
+ *
809
+ * @param {string} mapping
810
+ * @param {*} [options] Override http request option.
811
+ * @throws {RequiredError}
812
+ * @memberof SchemaApi
813
+ */
814
+ mapping(mapping, options) {
815
+ return (0, exports.SchemaApiFp)(this.configuration).mapping(mapping, options).then((request) => request(this.axios, this.configuration.basePath));
816
+ }
817
+ /**
818
+ *
819
+ * @param {*} [options] Override http request option.
820
+ * @throws {RequiredError}
821
+ * @memberof SchemaApi
822
+ */
823
+ mappings(options) {
824
+ return (0, exports.SchemaApiFp)(this.configuration).mappings(options).then((request) => request(this.axios, this.configuration.basePath));
825
+ }
826
+ /**
827
+ *
828
+ * @param {string} stage
829
+ * @param {*} [options] Override http request option.
830
+ * @throws {RequiredError}
831
+ * @memberof SchemaApi
832
+ */
833
+ stage(stage, options) {
834
+ return (0, exports.SchemaApiFp)(this.configuration).stage(stage, options).then((request) => request(this.axios, this.configuration.basePath));
835
+ }
836
+ /**
837
+ *
838
+ * @param {*} [options] Override http request option.
839
+ * @throws {RequiredError}
840
+ * @memberof SchemaApi
841
+ */
842
+ stages(options) {
843
+ return (0, exports.SchemaApiFp)(this.configuration).stages(options).then((request) => request(this.axios, this.configuration.basePath));
844
+ }
845
+ }
846
+ exports.SchemaApi = SchemaApi;
847
+ //# sourceMappingURL=schemaApi.js.map