@seatmap-fyi/api-client 0.1.0-alpha.31 → 0.1.0-alpha.33
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.
- package/dist/generated.d.ts +268 -0
- package/dist/generated.js +111 -0
- package/dist/transport.js +1 -1
- package/package.json +1 -1
package/dist/generated.d.ts
CHANGED
|
@@ -124,6 +124,152 @@ export interface MapListDto {
|
|
|
124
124
|
/** @nullable */
|
|
125
125
|
nextCursor: string | null;
|
|
126
126
|
}
|
|
127
|
+
export type ReadPlanBlockDtoAt = {
|
|
128
|
+
/**
|
|
129
|
+
* @minimum 0
|
|
130
|
+
* @maximum 1
|
|
131
|
+
*/
|
|
132
|
+
x: number;
|
|
133
|
+
/**
|
|
134
|
+
* @minimum 0
|
|
135
|
+
* @maximum 1
|
|
136
|
+
*/
|
|
137
|
+
y: number;
|
|
138
|
+
};
|
|
139
|
+
export interface ReadPlanBlockDto {
|
|
140
|
+
/**
|
|
141
|
+
* @maximum 9007199254740991
|
|
142
|
+
* @exclusiveMinimum 0
|
|
143
|
+
*/
|
|
144
|
+
revision: number;
|
|
145
|
+
planId: string;
|
|
146
|
+
at: ReadPlanBlockDtoAt;
|
|
147
|
+
}
|
|
148
|
+
export declare enum PlanReadKind {
|
|
149
|
+
miss = "miss",
|
|
150
|
+
rows = "rows",
|
|
151
|
+
shape = "shape"
|
|
152
|
+
}
|
|
153
|
+
export interface PlanPointDto {
|
|
154
|
+
x: number;
|
|
155
|
+
y: number;
|
|
156
|
+
}
|
|
157
|
+
export interface PlanRowDto {
|
|
158
|
+
first: PlanPointDto;
|
|
159
|
+
last: PlanPointDto;
|
|
160
|
+
count: number;
|
|
161
|
+
}
|
|
162
|
+
export interface PlanBoundaryDto {
|
|
163
|
+
left: number;
|
|
164
|
+
top: number;
|
|
165
|
+
width: number;
|
|
166
|
+
height: number;
|
|
167
|
+
}
|
|
168
|
+
export interface PlanReadResultDto {
|
|
169
|
+
kind: PlanReadKind;
|
|
170
|
+
rows?: PlanRowDto[];
|
|
171
|
+
boundary?: PlanBoundaryDto;
|
|
172
|
+
}
|
|
173
|
+
export type ReadPlanCurveDtoFirst = {
|
|
174
|
+
/**
|
|
175
|
+
* @minimum 0
|
|
176
|
+
* @maximum 1
|
|
177
|
+
*/
|
|
178
|
+
x: number;
|
|
179
|
+
/**
|
|
180
|
+
* @minimum 0
|
|
181
|
+
* @maximum 1
|
|
182
|
+
*/
|
|
183
|
+
y: number;
|
|
184
|
+
};
|
|
185
|
+
export type ReadPlanCurveDtoMiddle = {
|
|
186
|
+
/**
|
|
187
|
+
* @minimum 0
|
|
188
|
+
* @maximum 1
|
|
189
|
+
*/
|
|
190
|
+
x: number;
|
|
191
|
+
/**
|
|
192
|
+
* @minimum 0
|
|
193
|
+
* @maximum 1
|
|
194
|
+
*/
|
|
195
|
+
y: number;
|
|
196
|
+
};
|
|
197
|
+
export type ReadPlanCurveDtoLast = {
|
|
198
|
+
/**
|
|
199
|
+
* @minimum 0
|
|
200
|
+
* @maximum 1
|
|
201
|
+
*/
|
|
202
|
+
x: number;
|
|
203
|
+
/**
|
|
204
|
+
* @minimum 0
|
|
205
|
+
* @maximum 1
|
|
206
|
+
*/
|
|
207
|
+
y: number;
|
|
208
|
+
};
|
|
209
|
+
export interface ReadPlanCurveDto {
|
|
210
|
+
/**
|
|
211
|
+
* @maximum 9007199254740991
|
|
212
|
+
* @exclusiveMinimum 0
|
|
213
|
+
*/
|
|
214
|
+
revision: number;
|
|
215
|
+
planId: string;
|
|
216
|
+
first: ReadPlanCurveDtoFirst;
|
|
217
|
+
middle: ReadPlanCurveDtoMiddle;
|
|
218
|
+
last: ReadPlanCurveDtoLast;
|
|
219
|
+
}
|
|
220
|
+
export interface PlanCurvedRowDto {
|
|
221
|
+
first: PlanPointDto;
|
|
222
|
+
middle: PlanPointDto;
|
|
223
|
+
last: PlanPointDto;
|
|
224
|
+
count: number;
|
|
225
|
+
diameterFraction: number;
|
|
226
|
+
}
|
|
227
|
+
export interface PlanCurveReadResultDto {
|
|
228
|
+
row?: PlanCurvedRowDto;
|
|
229
|
+
}
|
|
230
|
+
export interface ReviewPlanDto {
|
|
231
|
+
/**
|
|
232
|
+
* @maximum 9007199254740991
|
|
233
|
+
* @exclusiveMinimum 0
|
|
234
|
+
*/
|
|
235
|
+
revision: number;
|
|
236
|
+
planId: string;
|
|
237
|
+
}
|
|
238
|
+
export interface PlanSectionOutlineDto {
|
|
239
|
+
points: PlanPointDto[];
|
|
240
|
+
holes?: PlanPointDto[][];
|
|
241
|
+
}
|
|
242
|
+
export interface PlanSectionFindResultDto {
|
|
243
|
+
sections: PlanSectionOutlineDto[];
|
|
244
|
+
}
|
|
245
|
+
export interface PlanPageBlockDto {
|
|
246
|
+
rows: PlanRowDto[];
|
|
247
|
+
boundary?: PlanBoundaryDto;
|
|
248
|
+
}
|
|
249
|
+
export interface PlanPageReadResultDto {
|
|
250
|
+
blocks: PlanPageBlockDto[];
|
|
251
|
+
sections: PlanSectionOutlineDto[];
|
|
252
|
+
glyphLimitReached: boolean;
|
|
253
|
+
/**
|
|
254
|
+
* Nearby seat-like marks the scan left out of its row proposals. Requires recognized rows.
|
|
255
|
+
* @minimum 0
|
|
256
|
+
*/
|
|
257
|
+
uncertainMarks?: number;
|
|
258
|
+
}
|
|
259
|
+
export declare enum PlanReviewVerdict {
|
|
260
|
+
matched = "matched",
|
|
261
|
+
"insufficient-evidence" = "insufficient-evidence"
|
|
262
|
+
}
|
|
263
|
+
export interface PlanReviewResultDto {
|
|
264
|
+
verdict: PlanReviewVerdict;
|
|
265
|
+
printedSeats?: number;
|
|
266
|
+
matchedSeats?: number;
|
|
267
|
+
/**
|
|
268
|
+
* Seat-like marks excluded from the printed count that may need manual review.
|
|
269
|
+
* @minimum 1
|
|
270
|
+
*/
|
|
271
|
+
uncertainMarks?: number;
|
|
272
|
+
}
|
|
127
273
|
export declare enum MapEditorStateDtoVersion {
|
|
128
274
|
NUMBER_1 = 1
|
|
129
275
|
}
|
|
@@ -159,8 +305,37 @@ export type PhysicalDocumentV1DtoSegmentedRowsItemSequenceNumberFrom = "first" |
|
|
|
159
305
|
*/
|
|
160
306
|
export type PhysicalDocumentV1DtoSegmentedRowsItemPartsItemJoinBefore = "aisle" | "continuous";
|
|
161
307
|
export type PhysicalDocumentV1DtoAssetsItemMimeType = "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml";
|
|
308
|
+
export type PhysicalDocumentV1DtoBuyerPhotoSourceDimensions = {
|
|
309
|
+
/**
|
|
310
|
+
* @maximum 9007199254740991
|
|
311
|
+
* @exclusiveMinimum 0
|
|
312
|
+
*/
|
|
313
|
+
width: number;
|
|
314
|
+
/**
|
|
315
|
+
* @maximum 9007199254740991
|
|
316
|
+
* @exclusiveMinimum 0
|
|
317
|
+
*/
|
|
318
|
+
height: number;
|
|
319
|
+
};
|
|
162
320
|
export type PhysicalDocumentV1DtoBuyerPhoto = {
|
|
163
321
|
assetId: string;
|
|
322
|
+
/**
|
|
323
|
+
* @minimum -360
|
|
324
|
+
* @maximum 360
|
|
325
|
+
*/
|
|
326
|
+
initialBearingDeg?: number;
|
|
327
|
+
/**
|
|
328
|
+
* @minimum -35
|
|
329
|
+
* @maximum 35
|
|
330
|
+
*/
|
|
331
|
+
initialPitchDeg?: number;
|
|
332
|
+
capturedAt?: string;
|
|
333
|
+
/**
|
|
334
|
+
* Unicode code-point length; control characters and unpaired surrogates are rejected.
|
|
335
|
+
* @maxLength 100
|
|
336
|
+
*/
|
|
337
|
+
sourceLabel?: string;
|
|
338
|
+
sourceDimensions?: PhysicalDocumentV1DtoBuyerPhotoSourceDimensions;
|
|
164
339
|
};
|
|
165
340
|
export type PhysicalDocumentV1DtoCoordinateSystem = {
|
|
166
341
|
unit: PhysicalDocumentV1DtoCoordinateSystemUnit;
|
|
@@ -3300,6 +3475,17 @@ export type PhysicalDocumentV1DtoDecorationsItem = {
|
|
|
3300
3475
|
opens?: string;
|
|
3301
3476
|
showToBuyers?: boolean;
|
|
3302
3477
|
};
|
|
3478
|
+
stage?: {
|
|
3479
|
+
labelStyle?: {
|
|
3480
|
+
color?: string;
|
|
3481
|
+
/**
|
|
3482
|
+
* Single-line label text without control characters or unpaired surrogates.
|
|
3483
|
+
* @minLength 1
|
|
3484
|
+
*/
|
|
3485
|
+
fontFamily?: string;
|
|
3486
|
+
underline?: boolean;
|
|
3487
|
+
};
|
|
3488
|
+
};
|
|
3303
3489
|
boundary: {
|
|
3304
3490
|
/**
|
|
3305
3491
|
* Implicitly closed ring; the last vertex must not repeat the first.
|
|
@@ -3499,6 +3685,58 @@ export type PhysicalDocumentV1DtoDecorationsItem = {
|
|
|
3499
3685
|
strokeWidthM?: number;
|
|
3500
3686
|
};
|
|
3501
3687
|
kind: "image";
|
|
3688
|
+
referencePlan?: true;
|
|
3689
|
+
referenceSource?: {
|
|
3690
|
+
/**
|
|
3691
|
+
* @minLength 1
|
|
3692
|
+
* @maxLength 255
|
|
3693
|
+
*/
|
|
3694
|
+
fileName: string;
|
|
3695
|
+
/**
|
|
3696
|
+
* @minimum 1
|
|
3697
|
+
* @maximum 100
|
|
3698
|
+
*/
|
|
3699
|
+
page?: number;
|
|
3700
|
+
};
|
|
3701
|
+
referenceLayer?: "below-chart" | "above-chart";
|
|
3702
|
+
referenceCrop?: {
|
|
3703
|
+
/**
|
|
3704
|
+
* @minimum 0
|
|
3705
|
+
* @maximum 1
|
|
3706
|
+
*/
|
|
3707
|
+
left: number;
|
|
3708
|
+
/**
|
|
3709
|
+
* @minimum 0
|
|
3710
|
+
* @maximum 1
|
|
3711
|
+
*/
|
|
3712
|
+
top: number;
|
|
3713
|
+
/**
|
|
3714
|
+
* @maximum 1
|
|
3715
|
+
* @exclusiveMinimum 0
|
|
3716
|
+
*/
|
|
3717
|
+
width: number;
|
|
3718
|
+
/**
|
|
3719
|
+
* @maximum 1
|
|
3720
|
+
* @exclusiveMinimum 0
|
|
3721
|
+
*/
|
|
3722
|
+
height: number;
|
|
3723
|
+
};
|
|
3724
|
+
referenceCalibration?: {
|
|
3725
|
+
firstPx: {
|
|
3726
|
+
/** @minimum 0 */
|
|
3727
|
+
x: number;
|
|
3728
|
+
/** @minimum 0 */
|
|
3729
|
+
y: number;
|
|
3730
|
+
};
|
|
3731
|
+
secondPx: {
|
|
3732
|
+
/** @minimum 0 */
|
|
3733
|
+
x: number;
|
|
3734
|
+
/** @minimum 0 */
|
|
3735
|
+
y: number;
|
|
3736
|
+
};
|
|
3737
|
+
/** @exclusiveMinimum 0 */
|
|
3738
|
+
distanceM: number;
|
|
3739
|
+
};
|
|
3502
3740
|
assetId: string;
|
|
3503
3741
|
sizeM: {
|
|
3504
3742
|
/**
|
|
@@ -3631,6 +3869,7 @@ export interface MapAcknowledgementDto {
|
|
|
3631
3869
|
acceptedAt: string;
|
|
3632
3870
|
lifecycle: MapLifecycle;
|
|
3633
3871
|
unchanged: boolean;
|
|
3872
|
+
expiredUndoRevisions?: number[];
|
|
3634
3873
|
issues: MapIssueDto[];
|
|
3635
3874
|
}
|
|
3636
3875
|
export declare enum MutationStatus {
|
|
@@ -3814,6 +4053,12 @@ export interface ReplaceDraftDto {
|
|
|
3814
4053
|
* @exclusiveMinimum 0
|
|
3815
4054
|
*/
|
|
3816
4055
|
expectedRevision: number;
|
|
4056
|
+
/**
|
|
4057
|
+
* @maxItems 100
|
|
4058
|
+
* @items.maximum 9007199254740991
|
|
4059
|
+
* @items.exclusiveMinimum 0
|
|
4060
|
+
*/
|
|
4061
|
+
undoRevisions?: number[];
|
|
3817
4062
|
replaceDraft: true;
|
|
3818
4063
|
/** Physical v1 and optional dated reference presentation. Runtime validation additionally enforces unique identities, structural references, capacity and cross-field geometry rules; readable semantic issues remain repairable. */
|
|
3819
4064
|
content: ReplaceDraftDtoContent;
|
|
@@ -3826,6 +4071,12 @@ export type SaveMapDto = {
|
|
|
3826
4071
|
* @exclusiveMinimum 0
|
|
3827
4072
|
*/
|
|
3828
4073
|
expectedRevision: number;
|
|
4074
|
+
/**
|
|
4075
|
+
* @maxItems 100
|
|
4076
|
+
* @items.maximum 9007199254740991
|
|
4077
|
+
* @items.exclusiveMinimum 0
|
|
4078
|
+
*/
|
|
4079
|
+
undoRevisions?: number[];
|
|
3829
4080
|
sectionLayout?: SectionLayoutSaveDto;
|
|
3830
4081
|
/** Physical v1 and optional dated reference presentation. Runtime validation additionally enforces unique identities, structural references, capacity and cross-field geometry rules; readable semantic issues remain repairable. */
|
|
3831
4082
|
content: {
|
|
@@ -3841,6 +4092,12 @@ export type SaveMapDto = {
|
|
|
3841
4092
|
* @exclusiveMinimum 0
|
|
3842
4093
|
*/
|
|
3843
4094
|
expectedRevision: number;
|
|
4095
|
+
/**
|
|
4096
|
+
* @maxItems 100
|
|
4097
|
+
* @items.maximum 9007199254740991
|
|
4098
|
+
* @items.exclusiveMinimum 0
|
|
4099
|
+
*/
|
|
4100
|
+
undoRevisions?: number[];
|
|
3844
4101
|
sectionLayout?: SectionLayoutSaveDto;
|
|
3845
4102
|
/** @maxItems 10000 */
|
|
3846
4103
|
changes: ({
|
|
@@ -3947,6 +4204,12 @@ export type MapActionDto = {
|
|
|
3947
4204
|
*/
|
|
3948
4205
|
sourceRevision: number;
|
|
3949
4206
|
keepDraftAsVersion?: boolean;
|
|
4207
|
+
/**
|
|
4208
|
+
* @maxItems 100
|
|
4209
|
+
* @items.maximum 9007199254740991
|
|
4210
|
+
* @items.exclusiveMinimum 0
|
|
4211
|
+
*/
|
|
4212
|
+
undoRevisions?: number[];
|
|
3950
4213
|
};
|
|
3951
4214
|
export declare enum MapOperation {
|
|
3952
4215
|
create = "create",
|
|
@@ -4246,6 +4509,11 @@ export declare class MapsClient {
|
|
|
4246
4509
|
constructor(configuration: Configuration, basePath?: string | undefined, axiosInstance?: AxiosInstance);
|
|
4247
4510
|
listMaps(workspaceId: string, params?: ListMapsParams, options?: AxiosRequestConfig): Promise<AxiosResponse<MapListDto>>;
|
|
4248
4511
|
createMap(workspaceId: string, createMapDto: CreateMapDto, options?: AxiosRequestConfig): Promise<AxiosResponse<MapAcknowledgementDto>>;
|
|
4512
|
+
readReferencePlanBlock(workspaceId: string, mapId: string, readPlanBlockDto: ReadPlanBlockDto, options?: AxiosRequestConfig): Promise<AxiosResponse<PlanReadResultDto>>;
|
|
4513
|
+
readReferencePlanCurve(workspaceId: string, mapId: string, readPlanCurveDto: ReadPlanCurveDto, options?: AxiosRequestConfig): Promise<AxiosResponse<PlanCurveReadResultDto>>;
|
|
4514
|
+
findReferencePlanSections(workspaceId: string, mapId: string, reviewPlanDto: ReviewPlanDto, options?: AxiosRequestConfig): Promise<AxiosResponse<PlanSectionFindResultDto>>;
|
|
4515
|
+
readWholeReferencePlan(workspaceId: string, mapId: string, reviewPlanDto: ReviewPlanDto, options?: AxiosRequestConfig): Promise<AxiosResponse<PlanPageReadResultDto>>;
|
|
4516
|
+
reviewReferencePlan(workspaceId: string, mapId: string, reviewPlanDto: ReviewPlanDto, options?: AxiosRequestConfig): Promise<AxiosResponse<PlanReviewResultDto>>;
|
|
4249
4517
|
getMapPreview(workspaceId: string, mapId: string, params: GetMapPreviewParams, options?: AxiosRequestConfig): Promise<AxiosResponse<Blob>>;
|
|
4250
4518
|
getMutationStatus(workspaceId: string, operationId: string, options?: AxiosRequestConfig): Promise<AxiosResponse<MutationStatusDto>>;
|
|
4251
4519
|
resolveMapLink(workspaceId: string, editorCode: string, options?: AxiosRequestConfig): Promise<AxiosResponse<MapLinkDto>>;
|
package/dist/generated.js
CHANGED
|
@@ -35,6 +35,17 @@ export var MapLifecycle;
|
|
|
35
35
|
MapLifecycle["trashed"] = "trashed";
|
|
36
36
|
MapLifecycle["deleted"] = "deleted";
|
|
37
37
|
})(MapLifecycle || (MapLifecycle = {}));
|
|
38
|
+
export var PlanReadKind;
|
|
39
|
+
(function (PlanReadKind) {
|
|
40
|
+
PlanReadKind["miss"] = "miss";
|
|
41
|
+
PlanReadKind["rows"] = "rows";
|
|
42
|
+
PlanReadKind["shape"] = "shape";
|
|
43
|
+
})(PlanReadKind || (PlanReadKind = {}));
|
|
44
|
+
export var PlanReviewVerdict;
|
|
45
|
+
(function (PlanReviewVerdict) {
|
|
46
|
+
PlanReviewVerdict["matched"] = "matched";
|
|
47
|
+
PlanReviewVerdict["insufficient-evidence"] = "insufficient-evidence";
|
|
48
|
+
})(PlanReviewVerdict || (PlanReviewVerdict = {}));
|
|
38
49
|
export var MapEditorStateDtoVersion;
|
|
39
50
|
(function (MapEditorStateDtoVersion) {
|
|
40
51
|
MapEditorStateDtoVersion[MapEditorStateDtoVersion["NUMBER_1"] = 1] = "NUMBER_1";
|
|
@@ -209,6 +220,26 @@ export class MapsClient {
|
|
|
209
220
|
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST", createMapDto);
|
|
210
221
|
return this.operations.createMap(workspaceId, requestOptions.data instanceof ArrayBuffer ? requestOptions.data : createMapDto, requestOptions);
|
|
211
222
|
}
|
|
223
|
+
async readReferencePlanBlock(workspaceId, mapId, readPlanBlockDto, options) {
|
|
224
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST", readPlanBlockDto);
|
|
225
|
+
return this.operations.readReferencePlanBlock(workspaceId, mapId, requestOptions.data instanceof ArrayBuffer ? requestOptions.data : readPlanBlockDto, requestOptions);
|
|
226
|
+
}
|
|
227
|
+
async readReferencePlanCurve(workspaceId, mapId, readPlanCurveDto, options) {
|
|
228
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST", readPlanCurveDto);
|
|
229
|
+
return this.operations.readReferencePlanCurve(workspaceId, mapId, requestOptions.data instanceof ArrayBuffer ? requestOptions.data : readPlanCurveDto, requestOptions);
|
|
230
|
+
}
|
|
231
|
+
async findReferencePlanSections(workspaceId, mapId, reviewPlanDto, options) {
|
|
232
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST", reviewPlanDto);
|
|
233
|
+
return this.operations.findReferencePlanSections(workspaceId, mapId, requestOptions.data instanceof ArrayBuffer ? requestOptions.data : reviewPlanDto, requestOptions);
|
|
234
|
+
}
|
|
235
|
+
async readWholeReferencePlan(workspaceId, mapId, reviewPlanDto, options) {
|
|
236
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST", reviewPlanDto);
|
|
237
|
+
return this.operations.readWholeReferencePlan(workspaceId, mapId, requestOptions.data instanceof ArrayBuffer ? requestOptions.data : reviewPlanDto, requestOptions);
|
|
238
|
+
}
|
|
239
|
+
async reviewReferencePlan(workspaceId, mapId, reviewPlanDto, options) {
|
|
240
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST", reviewPlanDto);
|
|
241
|
+
return this.operations.reviewReferencePlan(workspaceId, mapId, requestOptions.data instanceof ArrayBuffer ? requestOptions.data : reviewPlanDto, requestOptions);
|
|
242
|
+
}
|
|
212
243
|
async getMapPreview(workspaceId, mapId, params, options) {
|
|
213
244
|
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
|
|
214
245
|
return this.operations.getMapPreview(workspaceId, mapId, params, requestOptions);
|
|
@@ -473,6 +504,76 @@ const getSeatmapApi = (axiosInstance = axios) => {
|
|
|
473
504
|
baseURL: "",
|
|
474
505
|
});
|
|
475
506
|
};
|
|
507
|
+
const readReferencePlanBlock = (workspaceId, mapId, readPlanBlockDto, options) => {
|
|
508
|
+
return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/reference-plan/read-block`, readPlanBlockDto, options);
|
|
509
|
+
};
|
|
510
|
+
const getReadReferencePlanBlockUrl = (workspaceId, mapId) => {
|
|
511
|
+
return axiosInstance
|
|
512
|
+
.create({
|
|
513
|
+
baseURL: "",
|
|
514
|
+
params: null,
|
|
515
|
+
})
|
|
516
|
+
.getUri({
|
|
517
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/reference-plan/read-block`,
|
|
518
|
+
baseURL: "",
|
|
519
|
+
});
|
|
520
|
+
};
|
|
521
|
+
const readReferencePlanCurve = (workspaceId, mapId, readPlanCurveDto, options) => {
|
|
522
|
+
return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/reference-plan/read-curved-row`, readPlanCurveDto, options);
|
|
523
|
+
};
|
|
524
|
+
const getReadReferencePlanCurveUrl = (workspaceId, mapId) => {
|
|
525
|
+
return axiosInstance
|
|
526
|
+
.create({
|
|
527
|
+
baseURL: "",
|
|
528
|
+
params: null,
|
|
529
|
+
})
|
|
530
|
+
.getUri({
|
|
531
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/reference-plan/read-curved-row`,
|
|
532
|
+
baseURL: "",
|
|
533
|
+
});
|
|
534
|
+
};
|
|
535
|
+
const findReferencePlanSections = (workspaceId, mapId, reviewPlanDto, options) => {
|
|
536
|
+
return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/reference-plan/find-sections`, reviewPlanDto, options);
|
|
537
|
+
};
|
|
538
|
+
const getFindReferencePlanSectionsUrl = (workspaceId, mapId) => {
|
|
539
|
+
return axiosInstance
|
|
540
|
+
.create({
|
|
541
|
+
baseURL: "",
|
|
542
|
+
params: null,
|
|
543
|
+
})
|
|
544
|
+
.getUri({
|
|
545
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/reference-plan/find-sections`,
|
|
546
|
+
baseURL: "",
|
|
547
|
+
});
|
|
548
|
+
};
|
|
549
|
+
const readWholeReferencePlan = (workspaceId, mapId, reviewPlanDto, options) => {
|
|
550
|
+
return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/reference-plan/read-all`, reviewPlanDto, options);
|
|
551
|
+
};
|
|
552
|
+
const getReadWholeReferencePlanUrl = (workspaceId, mapId) => {
|
|
553
|
+
return axiosInstance
|
|
554
|
+
.create({
|
|
555
|
+
baseURL: "",
|
|
556
|
+
params: null,
|
|
557
|
+
})
|
|
558
|
+
.getUri({
|
|
559
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/reference-plan/read-all`,
|
|
560
|
+
baseURL: "",
|
|
561
|
+
});
|
|
562
|
+
};
|
|
563
|
+
const reviewReferencePlan = (workspaceId, mapId, reviewPlanDto, options) => {
|
|
564
|
+
return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/reference-plan/review`, reviewPlanDto, options);
|
|
565
|
+
};
|
|
566
|
+
const getReviewReferencePlanUrl = (workspaceId, mapId) => {
|
|
567
|
+
return axiosInstance
|
|
568
|
+
.create({
|
|
569
|
+
baseURL: "",
|
|
570
|
+
params: null,
|
|
571
|
+
})
|
|
572
|
+
.getUri({
|
|
573
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/reference-plan/review`,
|
|
574
|
+
baseURL: "",
|
|
575
|
+
});
|
|
576
|
+
};
|
|
476
577
|
const getMapPreview = (workspaceId, mapId, params, options) => {
|
|
477
578
|
return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/maps/${encodeURIComponent(mapId)}/preview`, {
|
|
478
579
|
responseType: "blob",
|
|
@@ -862,6 +963,11 @@ const getSeatmapApi = (axiosInstance = axios) => {
|
|
|
862
963
|
getEmbedContext,
|
|
863
964
|
listMaps,
|
|
864
965
|
createMap,
|
|
966
|
+
readReferencePlanBlock,
|
|
967
|
+
readReferencePlanCurve,
|
|
968
|
+
findReferencePlanSections,
|
|
969
|
+
readWholeReferencePlan,
|
|
970
|
+
reviewReferencePlan,
|
|
865
971
|
getMapPreview,
|
|
866
972
|
getMutationStatus,
|
|
867
973
|
resolveMapLink,
|
|
@@ -898,6 +1004,11 @@ const getSeatmapApi = (axiosInstance = axios) => {
|
|
|
898
1004
|
getGetEmbedContextUrl,
|
|
899
1005
|
getListMapsUrl,
|
|
900
1006
|
getCreateMapUrl,
|
|
1007
|
+
getReadReferencePlanBlockUrl,
|
|
1008
|
+
getReadReferencePlanCurveUrl,
|
|
1009
|
+
getFindReferencePlanSectionsUrl,
|
|
1010
|
+
getReadWholeReferencePlanUrl,
|
|
1011
|
+
getReviewReferencePlanUrl,
|
|
901
1012
|
getGetMapPreviewUrl,
|
|
902
1013
|
getGetMutationStatusUrl,
|
|
903
1014
|
getResolveMapLinkUrl,
|
package/dist/transport.js
CHANGED