swoop-common 1.0.38 → 1.0.40

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.
@@ -2,10 +2,10 @@ import type { DTOComponentCreate } from '../models/DTOComponentCreate';
2
2
  import type { DTOComponentRead } from '../models/DTOComponentRead';
3
3
  import type { DTOComponentUpdate } from '../models/DTOComponentUpdate';
4
4
  import type { DTOTemplateCreate } from '../models/DTOTemplateCreate';
5
- import type { DTOTemplateRead } from '../models/DTOTemplateRead';
5
+ import { DTOTemplateRead } from '../models/DTOTemplateRead';
6
6
  import type { DTOTemplateUpdate } from '../models/DTOTemplateUpdate';
7
7
  import type { Pagination } from '../models/Pagination';
8
- import type { CancelablePromise } from '../core/CancelablePromise';
8
+ import { CancelablePromise } from '../core/CancelablePromise';
9
9
  export declare class CoreService {
10
10
  /**
11
11
  * List Templates
@@ -114,4 +114,10 @@ export declare class CoreService {
114
114
  * @throws ApiError
115
115
  */
116
116
  itineraryGet(): CancelablePromise<any>;
117
+ /**
118
+ * Resolve template hierarchy
119
+ * @returns Array<DTOTemplateRead> OK
120
+ * @throws Error | ApiError
121
+ */
122
+ templateResolveHierarchy(templateId: string): CancelablePromise<Array<DTOTemplateRead>>;
117
123
  }
@@ -1,5 +1,16 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { CancelablePromise } from '../core/CancelablePromise';
1
11
  import { OpenAPI } from '../core/OpenAPI';
2
12
  import { request as __request } from '../core/request';
13
+ import { resolveTemplateHierarchy } from '../../../additions/templateHierarchyResolver';
3
14
  export class CoreService {
4
15
  /**
5
16
  * List Templates
@@ -198,4 +209,15 @@ export class CoreService {
198
209
  url: '/itineraries',
199
210
  });
200
211
  }
212
+ /**
213
+ * Resolve template hierarchy
214
+ * @returns Array<DTOTemplateRead> OK
215
+ * @throws Error | ApiError
216
+ */
217
+ templateResolveHierarchy(templateId) {
218
+ return new CancelablePromise((resolve, _reject, _onCancel) => __awaiter(this, void 0, void 0, function* () {
219
+ const out = yield resolveTemplateHierarchy(templateId);
220
+ resolve(out);
221
+ }));
222
+ }
201
223
  }
@@ -4,8 +4,7 @@ import type { DTOItineraryUpdate } from '../models/DTOItineraryUpdate';
4
4
  import type { DTORegionCreate } from '../models/DTORegionCreate';
5
5
  import type { DTORegionRead } from '../models/DTORegionRead';
6
6
  import type { Pagination } from '../models/Pagination';
7
- import { CancelablePromise } from '../core/CancelablePromise';
8
- import { DTOTemplateRead } from '../models/DTOTemplateRead';
7
+ import type { CancelablePromise } from '../core/CancelablePromise';
9
8
  export declare class ItineraryService {
10
9
  /**
11
10
  * List Itineraries
@@ -83,10 +82,4 @@ export declare class ItineraryService {
83
82
  * @throws ApiError
84
83
  */
85
84
  regionCreate(requestBody?: DTORegionCreate): CancelablePromise<DTORegionRead>;
86
- /**
87
- * Resolve template hierarchy
88
- * @returns Array<DTOTemplateRead> OK
89
- * @throws Error | ApiError
90
- */
91
- templateResolveHierarchy(templateId: string): CancelablePromise<Array<DTOTemplateRead>>;
92
85
  }
@@ -1,16 +1,5 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import { CancelablePromise } from '../core/CancelablePromise';
11
1
  import { OpenAPI } from '../core/OpenAPI';
12
2
  import { request as __request } from '../core/request';
13
- import { resolveTemplateHierarchy } from '../../../additions/templateHierarchyResolver';
14
3
  export class ItineraryService {
15
4
  /**
16
5
  * List Itineraries
@@ -151,15 +140,4 @@ export class ItineraryService {
151
140
  mediaType: 'application/json',
152
141
  });
153
142
  }
154
- /**
155
- * Resolve template hierarchy
156
- * @returns Array<DTOTemplateRead> OK
157
- * @throws Error | ApiError
158
- */
159
- templateResolveHierarchy(templateId) {
160
- return new CancelablePromise((resolve, _reject, _onCancel) => __awaiter(this, void 0, void 0, function* () {
161
- const out = yield resolveTemplateHierarchy(templateId);
162
- resolve(out);
163
- }));
164
- }
165
143
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swoop-common",
3
- "version": "1.0.38",
3
+ "version": "1.0.40",
4
4
  "main": "dist/api/index.js",
5
5
  "types": "dist/api/index.d.ts",
6
6
  "exports": {
@@ -27,7 +27,7 @@
27
27
  "build-swoop-sdk": "npx openapi-typescript-codegen --input ./openapi/swoop_service.yaml --output ./src/api/generated/swoop --client fetch --postfixModels Swoop --request ./src/api/templates/request.ts",
28
28
  "prebuild": "npm run build-imports && npm run bundle && npm run build-sdk",
29
29
  "build-sdk-exports": "tsx ./src/api/gen.ts",
30
- "bundle": "",
30
+ "bundle": "tsx ./src/api/bundler.ts",
31
31
  "build-sdk": "npm run build-core-sdk && npm run build-itinerary-sdk && npm run build-swoop-sdk && npm run build-sdk-exports"
32
32
  },
33
33
  "author": "",