@hewnventures/levrops-sdk 1.7.3 → 1.8.0
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/core/OpenAPI.js +1 -1
- package/dist/generated/index.d.ts +14 -0
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +3 -0
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/models/BrandGuide.d.ts +55 -0
- package/dist/generated/models/BrandGuide.d.ts.map +1 -0
- package/dist/generated/models/BrandGuide.js +2 -0
- package/dist/generated/models/BrandGuide.js.map +1 -0
- package/dist/generated/models/BrandGuideUpdate.d.ts +12 -0
- package/dist/generated/models/BrandGuideUpdate.d.ts.map +1 -0
- package/dist/generated/models/BrandGuideUpdate.js +2 -0
- package/dist/generated/models/BrandGuideUpdate.js.map +1 -0
- package/dist/generated/models/Environment.d.ts +12 -0
- package/dist/generated/models/Environment.d.ts.map +1 -0
- package/dist/generated/models/Environment.js +2 -0
- package/dist/generated/models/Environment.js.map +1 -0
- package/dist/generated/models/EnvironmentPromoteRequest.d.ts +15 -0
- package/dist/generated/models/EnvironmentPromoteRequest.d.ts.map +1 -0
- package/dist/generated/models/EnvironmentPromoteRequest.js +2 -0
- package/dist/generated/models/EnvironmentPromoteRequest.js.map +1 -0
- package/dist/generated/models/EnvironmentPromoteResponse.d.ts +31 -0
- package/dist/generated/models/EnvironmentPromoteResponse.d.ts.map +1 -0
- package/dist/generated/models/EnvironmentPromoteResponse.js +2 -0
- package/dist/generated/models/EnvironmentPromoteResponse.js.map +1 -0
- package/dist/generated/models/Integration.d.ts +5 -1
- package/dist/generated/models/Integration.d.ts.map +1 -1
- package/dist/generated/models/LayoutGenerationRequest.d.ts +22 -0
- package/dist/generated/models/LayoutGenerationRequest.d.ts.map +1 -0
- package/dist/generated/models/LayoutGenerationRequest.js +2 -0
- package/dist/generated/models/LayoutGenerationRequest.js.map +1 -0
- package/dist/generated/models/LayoutGenerationResponse.d.ts +15 -0
- package/dist/generated/models/LayoutGenerationResponse.d.ts.map +1 -0
- package/dist/generated/models/LayoutGenerationResponse.js +2 -0
- package/dist/generated/models/LayoutGenerationResponse.js.map +1 -0
- package/dist/generated/models/LayoutPlan.d.ts +33 -0
- package/dist/generated/models/LayoutPlan.d.ts.map +1 -0
- package/dist/generated/models/LayoutPlan.js +2 -0
- package/dist/generated/models/LayoutPlan.js.map +1 -0
- package/dist/generated/models/LayoutProfile.d.ts +25 -0
- package/dist/generated/models/LayoutProfile.d.ts.map +1 -0
- package/dist/generated/models/LayoutProfile.js +2 -0
- package/dist/generated/models/LayoutProfile.js.map +1 -0
- package/dist/generated/models/LayoutProfilePartial.d.ts +10 -0
- package/dist/generated/models/LayoutProfilePartial.d.ts.map +1 -0
- package/dist/generated/models/LayoutProfilePartial.js +2 -0
- package/dist/generated/models/LayoutProfilePartial.js.map +1 -0
- package/dist/generated/models/LayoutProfileWrite.d.ts +11 -0
- package/dist/generated/models/LayoutProfileWrite.d.ts.map +1 -0
- package/dist/generated/models/LayoutProfileWrite.js +2 -0
- package/dist/generated/models/LayoutProfileWrite.js.map +1 -0
- package/dist/generated/models/Property.d.ts +4 -0
- package/dist/generated/models/Property.d.ts.map +1 -1
- package/dist/generated/services/BrandGuidesService.d.ts +102 -0
- package/dist/generated/services/BrandGuidesService.d.ts.map +1 -0
- package/dist/generated/services/BrandGuidesService.js +141 -0
- package/dist/generated/services/BrandGuidesService.js.map +1 -0
- package/dist/generated/services/EnvironmentsService.d.ts +34 -0
- package/dist/generated/services/EnvironmentsService.d.ts.map +1 -0
- package/dist/generated/services/EnvironmentsService.js +50 -0
- package/dist/generated/services/EnvironmentsService.js.map +1 -0
- package/dist/generated/services/LayoutOpsService.d.ts +99 -0
- package/dist/generated/services/LayoutOpsService.d.ts.map +1 -0
- package/dist/generated/services/LayoutOpsService.js +174 -0
- package/dist/generated/services/LayoutOpsService.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import type { BrandGuide } from '../models/BrandGuide';
|
|
2
|
+
import type { BrandGuideUpdate } from '../models/BrandGuideUpdate';
|
|
3
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
|
+
export declare class BrandGuidesService {
|
|
5
|
+
/**
|
|
6
|
+
* List brand guides
|
|
7
|
+
* List brand guides filtered by tenant/property/status
|
|
8
|
+
* @returns BrandGuide List of brand guides
|
|
9
|
+
* @throws ApiError
|
|
10
|
+
*/
|
|
11
|
+
static brandGuideList({ tenant, property, status, }: {
|
|
12
|
+
/**
|
|
13
|
+
* Filter by tenant ID
|
|
14
|
+
*/
|
|
15
|
+
tenant?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Filter by property ID
|
|
18
|
+
*/
|
|
19
|
+
property?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Filter by status
|
|
22
|
+
*/
|
|
23
|
+
status?: 'uploaded' | 'extracted' | 'reviewing' | 'confirmed' | 'active' | 'superseded';
|
|
24
|
+
}): CancelablePromise<Array<BrandGuide>>;
|
|
25
|
+
/**
|
|
26
|
+
* Upload brand guide file
|
|
27
|
+
* Upload a brand guide file and start extraction process (Step 1)
|
|
28
|
+
* @returns BrandGuide Brand guide uploaded and extraction queued
|
|
29
|
+
* @throws ApiError
|
|
30
|
+
*/
|
|
31
|
+
static brandGuideUpload({ formData, }: {
|
|
32
|
+
formData: {
|
|
33
|
+
/**
|
|
34
|
+
* Brand guide file (PDF, doc, etc.)
|
|
35
|
+
*/
|
|
36
|
+
file: Blob;
|
|
37
|
+
/**
|
|
38
|
+
* Brand guide name
|
|
39
|
+
*/
|
|
40
|
+
name?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Property ID (optional, for property-scoped guides)
|
|
43
|
+
*/
|
|
44
|
+
property_id?: string | null;
|
|
45
|
+
};
|
|
46
|
+
}): CancelablePromise<BrandGuide>;
|
|
47
|
+
/**
|
|
48
|
+
* Retrieve brand guide
|
|
49
|
+
* @returns BrandGuide Brand guide details
|
|
50
|
+
* @throws ApiError
|
|
51
|
+
*/
|
|
52
|
+
static brandGuideRetrieve({ id, }: {
|
|
53
|
+
/**
|
|
54
|
+
* Brand guide ID
|
|
55
|
+
*/
|
|
56
|
+
id: string;
|
|
57
|
+
}): CancelablePromise<BrandGuide>;
|
|
58
|
+
/**
|
|
59
|
+
* Update brand guide
|
|
60
|
+
* Update brand guide during review/edit phase (Step 3)
|
|
61
|
+
* @returns BrandGuide Brand guide updated
|
|
62
|
+
* @throws ApiError
|
|
63
|
+
*/
|
|
64
|
+
static brandGuideUpdate({ id, requestBody, }: {
|
|
65
|
+
/**
|
|
66
|
+
* Brand guide ID
|
|
67
|
+
*/
|
|
68
|
+
id: string;
|
|
69
|
+
requestBody: BrandGuideUpdate;
|
|
70
|
+
}): CancelablePromise<BrandGuide>;
|
|
71
|
+
/**
|
|
72
|
+
* Confirm authorship
|
|
73
|
+
* Confirm authorship with checkbox and re-typed belief (Step 4)
|
|
74
|
+
* @returns BrandGuide Authorship confirmed
|
|
75
|
+
* @throws ApiError
|
|
76
|
+
*/
|
|
77
|
+
static brandGuideConfirmAuthorship({ id, requestBody, }: {
|
|
78
|
+
/**
|
|
79
|
+
* Brand guide ID
|
|
80
|
+
*/
|
|
81
|
+
id: string;
|
|
82
|
+
requestBody: {
|
|
83
|
+
/**
|
|
84
|
+
* User's re-typed belief for confirmation
|
|
85
|
+
*/
|
|
86
|
+
belief_retyped: string;
|
|
87
|
+
};
|
|
88
|
+
}): CancelablePromise<BrandGuide>;
|
|
89
|
+
/**
|
|
90
|
+
* Activate brand guide
|
|
91
|
+
* Activate brand guide after confirmation (Step 5). Makes guide immutable and triggers downstream updates.
|
|
92
|
+
* @returns BrandGuide Brand guide activated
|
|
93
|
+
* @throws ApiError
|
|
94
|
+
*/
|
|
95
|
+
static brandGuideActivate({ id, }: {
|
|
96
|
+
/**
|
|
97
|
+
* Brand guide ID
|
|
98
|
+
*/
|
|
99
|
+
id: string;
|
|
100
|
+
}): CancelablePromise<BrandGuide>;
|
|
101
|
+
}
|
|
102
|
+
//# sourceMappingURL=BrandGuidesService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrandGuidesService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/BrandGuidesService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,qBAAa,kBAAkB;IAC3B;;;;;OAKG;WACW,cAAc,CAAC,EACzB,MAAM,EACN,QAAQ,EACR,MAAM,GACT,EAAE;QACC;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB;;WAEG;QACH,MAAM,CAAC,EAAE,UAAU,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,QAAQ,GAAG,YAAY,CAAC;KAC3F,GAAG,iBAAiB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAgBxC;;;;;OAKG;WACW,gBAAgB,CAAC,EAC3B,QAAQ,GACX,EAAE;QACC,QAAQ,EAAE;YACN;;eAEG;YACH,IAAI,EAAE,IAAI,CAAC;YACX;;eAEG;YACH,IAAI,CAAC,EAAE,MAAM,CAAC;YACd;;eAEG;YACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SAC/B,CAAC;KACL,GAAG,iBAAiB,CAAC,UAAU,CAAC;IAejC;;;;OAIG;WACW,kBAAkB,CAAC,EAC7B,EAAE,GACL,EAAE;QACC;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACd,GAAG,iBAAiB,CAAC,UAAU,CAAC;IAejC;;;;;OAKG;WACW,gBAAgB,CAAC,EAC3B,EAAE,EACF,WAAW,GACd,EAAE;QACC;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QACX,WAAW,EAAE,gBAAgB,CAAC;KACjC,GAAG,iBAAiB,CAAC,UAAU,CAAC;IAmBjC;;;;;OAKG;WACW,2BAA2B,CAAC,EACtC,EAAE,EACF,WAAW,GACd,EAAE;QACC;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QACX,WAAW,EAAE;YACT;;eAEG;YACH,cAAc,EAAE,MAAM,CAAC;SAC1B,CAAC;KACL,GAAG,iBAAiB,CAAC,UAAU,CAAC;IAmBjC;;;;;OAKG;WACW,kBAAkB,CAAC,EAC7B,EAAE,GACL,EAAE;QACC;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACd,GAAG,iBAAiB,CAAC,UAAU,CAAC;CAiBpC"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class BrandGuidesService {
|
|
4
|
+
/**
|
|
5
|
+
* List brand guides
|
|
6
|
+
* List brand guides filtered by tenant/property/status
|
|
7
|
+
* @returns BrandGuide List of brand guides
|
|
8
|
+
* @throws ApiError
|
|
9
|
+
*/
|
|
10
|
+
static brandGuideList({ tenant, property, status, }) {
|
|
11
|
+
return __request(OpenAPI, {
|
|
12
|
+
method: 'GET',
|
|
13
|
+
url: '/api/v1/mcp/brand-guides/',
|
|
14
|
+
query: {
|
|
15
|
+
'tenant': tenant,
|
|
16
|
+
'property': property,
|
|
17
|
+
'status': status,
|
|
18
|
+
},
|
|
19
|
+
errors: {
|
|
20
|
+
401: `Authentication required`,
|
|
21
|
+
403: `Permission denied with detailed error information`,
|
|
22
|
+
500: `Unexpected server error`,
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Upload brand guide file
|
|
28
|
+
* Upload a brand guide file and start extraction process (Step 1)
|
|
29
|
+
* @returns BrandGuide Brand guide uploaded and extraction queued
|
|
30
|
+
* @throws ApiError
|
|
31
|
+
*/
|
|
32
|
+
static brandGuideUpload({ formData, }) {
|
|
33
|
+
return __request(OpenAPI, {
|
|
34
|
+
method: 'POST',
|
|
35
|
+
url: '/api/v1/mcp/brand-guides/',
|
|
36
|
+
formData: formData,
|
|
37
|
+
mediaType: 'multipart/form-data',
|
|
38
|
+
errors: {
|
|
39
|
+
400: `Bad request`,
|
|
40
|
+
401: `Authentication required`,
|
|
41
|
+
403: `Permission denied with detailed error information`,
|
|
42
|
+
422: `Validation failed`,
|
|
43
|
+
500: `Unexpected server error`,
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Retrieve brand guide
|
|
49
|
+
* @returns BrandGuide Brand guide details
|
|
50
|
+
* @throws ApiError
|
|
51
|
+
*/
|
|
52
|
+
static brandGuideRetrieve({ id, }) {
|
|
53
|
+
return __request(OpenAPI, {
|
|
54
|
+
method: 'GET',
|
|
55
|
+
url: '/api/v1/mcp/brand-guides/{id}/',
|
|
56
|
+
path: {
|
|
57
|
+
'id': id,
|
|
58
|
+
},
|
|
59
|
+
errors: {
|
|
60
|
+
401: `Authentication required`,
|
|
61
|
+
403: `Permission denied with detailed error information`,
|
|
62
|
+
404: `Resource not found`,
|
|
63
|
+
500: `Unexpected server error`,
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Update brand guide
|
|
69
|
+
* Update brand guide during review/edit phase (Step 3)
|
|
70
|
+
* @returns BrandGuide Brand guide updated
|
|
71
|
+
* @throws ApiError
|
|
72
|
+
*/
|
|
73
|
+
static brandGuideUpdate({ id, requestBody, }) {
|
|
74
|
+
return __request(OpenAPI, {
|
|
75
|
+
method: 'PATCH',
|
|
76
|
+
url: '/api/v1/mcp/brand-guides/{id}/',
|
|
77
|
+
path: {
|
|
78
|
+
'id': id,
|
|
79
|
+
},
|
|
80
|
+
body: requestBody,
|
|
81
|
+
mediaType: 'application/json',
|
|
82
|
+
errors: {
|
|
83
|
+
400: `Bad request`,
|
|
84
|
+
401: `Authentication required`,
|
|
85
|
+
403: `Permission denied with detailed error information`,
|
|
86
|
+
404: `Resource not found`,
|
|
87
|
+
422: `Validation failed`,
|
|
88
|
+
500: `Unexpected server error`,
|
|
89
|
+
},
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Confirm authorship
|
|
94
|
+
* Confirm authorship with checkbox and re-typed belief (Step 4)
|
|
95
|
+
* @returns BrandGuide Authorship confirmed
|
|
96
|
+
* @throws ApiError
|
|
97
|
+
*/
|
|
98
|
+
static brandGuideConfirmAuthorship({ id, requestBody, }) {
|
|
99
|
+
return __request(OpenAPI, {
|
|
100
|
+
method: 'POST',
|
|
101
|
+
url: '/api/v1/mcp/brand-guides/{id}/confirm-authorship/',
|
|
102
|
+
path: {
|
|
103
|
+
'id': id,
|
|
104
|
+
},
|
|
105
|
+
body: requestBody,
|
|
106
|
+
mediaType: 'application/json',
|
|
107
|
+
errors: {
|
|
108
|
+
400: `Bad request`,
|
|
109
|
+
401: `Authentication required`,
|
|
110
|
+
403: `Permission denied with detailed error information`,
|
|
111
|
+
404: `Resource not found`,
|
|
112
|
+
422: `Validation failed`,
|
|
113
|
+
500: `Unexpected server error`,
|
|
114
|
+
},
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Activate brand guide
|
|
119
|
+
* Activate brand guide after confirmation (Step 5). Makes guide immutable and triggers downstream updates.
|
|
120
|
+
* @returns BrandGuide Brand guide activated
|
|
121
|
+
* @throws ApiError
|
|
122
|
+
*/
|
|
123
|
+
static brandGuideActivate({ id, }) {
|
|
124
|
+
return __request(OpenAPI, {
|
|
125
|
+
method: 'POST',
|
|
126
|
+
url: '/api/v1/mcp/brand-guides/{id}/activate/',
|
|
127
|
+
path: {
|
|
128
|
+
'id': id,
|
|
129
|
+
},
|
|
130
|
+
errors: {
|
|
131
|
+
400: `Bad request`,
|
|
132
|
+
401: `Authentication required`,
|
|
133
|
+
403: `Permission denied with detailed error information`,
|
|
134
|
+
404: `Resource not found`,
|
|
135
|
+
422: `Validation failed`,
|
|
136
|
+
500: `Unexpected server error`,
|
|
137
|
+
},
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=BrandGuidesService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrandGuidesService.js","sourceRoot":"","sources":["../../../src/generated/services/BrandGuidesService.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACvD,MAAM,OAAO,kBAAkB;IAC3B;;;;;OAKG;IACI,MAAM,CAAC,cAAc,CAAC,EACzB,MAAM,EACN,QAAQ,EACR,MAAM,GAcT;QACG,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,2BAA2B;YAChC,KAAK,EAAE;gBACH,QAAQ,EAAE,MAAM;gBAChB,UAAU,EAAE,QAAQ;gBACpB,QAAQ,EAAE,MAAM;aACnB;YACD,MAAM,EAAE;gBACJ,GAAG,EAAE,yBAAyB;gBAC9B,GAAG,EAAE,mDAAmD;gBACxD,GAAG,EAAE,yBAAyB;aACjC;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;OAKG;IACI,MAAM,CAAC,gBAAgB,CAAC,EAC3B,QAAQ,GAgBX;QACG,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,2BAA2B;YAChC,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,qBAAqB;YAChC,MAAM,EAAE;gBACJ,GAAG,EAAE,aAAa;gBAClB,GAAG,EAAE,yBAAyB;gBAC9B,GAAG,EAAE,mDAAmD;gBACxD,GAAG,EAAE,m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;gBAC9B,GAAG,EAAE,mDAAmD;gBACxD,GAAG,EAAE,oBAAoB;gBACzB,GAAG,EAAE,mBAAmB;gBACxB,GAAG,EAAE,yBAAyB;aACjC;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;OAKG;IACI,MAAM,CAAC,kBAAkB,CAAC,EAC7B,EAAE,GAML;QACG,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,yCAAyC;YAC9C,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;YACD,MAAM,EAAE;gBACJ,GAAG,EAAE,aAAa;gBAClB,GAAG,EAAE,yBAAyB;gBAC9B,GAAG,EAAE,mDAAmD;gBACxD,GAAG,EAAE,oBAAoB;gBACzB,GAAG,EAAE,mBAAmB;gBACxB,GAAG,EAAE,yBAAyB;aACjC;SACJ,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Environment } from '../models/Environment';
|
|
2
|
+
import type { EnvironmentPromoteRequest } from '../models/EnvironmentPromoteRequest';
|
|
3
|
+
import type { EnvironmentPromoteResponse } from '../models/EnvironmentPromoteResponse';
|
|
4
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
5
|
+
export declare class EnvironmentsService {
|
|
6
|
+
/**
|
|
7
|
+
* List environments for a tenant
|
|
8
|
+
* Returns all environments (sandbox, live) for the specified tenant. Requires tenant superadmin access.
|
|
9
|
+
* @returns any List of environments
|
|
10
|
+
* @throws ApiError
|
|
11
|
+
*/
|
|
12
|
+
static listEnvironments({ tenantSlug, }: {
|
|
13
|
+
/**
|
|
14
|
+
* Tenant slug
|
|
15
|
+
*/
|
|
16
|
+
tenantSlug: string;
|
|
17
|
+
}): CancelablePromise<{
|
|
18
|
+
environments?: Array<Environment>;
|
|
19
|
+
}>;
|
|
20
|
+
/**
|
|
21
|
+
* Promote configuration from one environment to another
|
|
22
|
+
* Promotes configuration (properties, integrations) from source environment (typically sandbox) to target environment (typically live). Secrets are never copied - API keys are revoked in target, integration credentials are cleared and marked as needs_secrets. Requires tenant superadmin access.
|
|
23
|
+
* @returns EnvironmentPromoteResponse Promotion completed successfully
|
|
24
|
+
* @throws ApiError
|
|
25
|
+
*/
|
|
26
|
+
static promoteEnvironment({ tenantSlug, requestBody, }: {
|
|
27
|
+
/**
|
|
28
|
+
* Tenant slug
|
|
29
|
+
*/
|
|
30
|
+
tenantSlug: string;
|
|
31
|
+
requestBody: EnvironmentPromoteRequest;
|
|
32
|
+
}): CancelablePromise<EnvironmentPromoteResponse>;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=EnvironmentsService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvironmentsService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/EnvironmentsService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,qBAAa,mBAAmB;IAC5B;;;;;OAKG;WACW,gBAAgB,CAAC,EAC3B,UAAU,GACb,EAAE;QACC;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;KACtB,GAAG,iBAAiB,CAAC;QAClB,YAAY,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;KACrC,CAAC;IAeF;;;;;OAKG;WACW,kBAAkB,CAAC,EAC7B,UAAU,EACV,WAAW,GACd,EAAE;QACC;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,yBAAyB,CAAC;KAC1C,GAAG,iBAAiB,CAAC,0BAA0B,CAAC;CAkBpD"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class EnvironmentsService {
|
|
4
|
+
/**
|
|
5
|
+
* List environments for a tenant
|
|
6
|
+
* Returns all environments (sandbox, live) for the specified tenant. Requires tenant superadmin access.
|
|
7
|
+
* @returns any List of environments
|
|
8
|
+
* @throws ApiError
|
|
9
|
+
*/
|
|
10
|
+
static listEnvironments({ tenantSlug, }) {
|
|
11
|
+
return __request(OpenAPI, {
|
|
12
|
+
method: 'GET',
|
|
13
|
+
url: '/api/v1/admin/tenants/{tenant_slug}/environments/',
|
|
14
|
+
path: {
|
|
15
|
+
'tenant_slug': tenantSlug,
|
|
16
|
+
},
|
|
17
|
+
errors: {
|
|
18
|
+
401: `Authentication required`,
|
|
19
|
+
403: `Insufficient permissions`,
|
|
20
|
+
404: `Resource not found`,
|
|
21
|
+
500: `Unexpected server error`,
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Promote configuration from one environment to another
|
|
27
|
+
* Promotes configuration (properties, integrations) from source environment (typically sandbox) to target environment (typically live). Secrets are never copied - API keys are revoked in target, integration credentials are cleared and marked as needs_secrets. Requires tenant superadmin access.
|
|
28
|
+
* @returns EnvironmentPromoteResponse Promotion completed successfully
|
|
29
|
+
* @throws ApiError
|
|
30
|
+
*/
|
|
31
|
+
static promoteEnvironment({ tenantSlug, requestBody, }) {
|
|
32
|
+
return __request(OpenAPI, {
|
|
33
|
+
method: 'POST',
|
|
34
|
+
url: '/api/v1/admin/tenants/{tenant_slug}/environments/promote/',
|
|
35
|
+
path: {
|
|
36
|
+
'tenant_slug': tenantSlug,
|
|
37
|
+
},
|
|
38
|
+
body: requestBody,
|
|
39
|
+
mediaType: 'application/json',
|
|
40
|
+
errors: {
|
|
41
|
+
400: `Bad request`,
|
|
42
|
+
401: `Authentication required`,
|
|
43
|
+
403: `Insufficient permissions`,
|
|
44
|
+
404: `Resource not found`,
|
|
45
|
+
500: `Unexpected server error`,
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=EnvironmentsService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvironmentsService.js","sourceRoot":"","sources":["../../../src/generated/services/EnvironmentsService.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACvD,MAAM,OAAO,mBAAmB;IAC5B;;;;;OAKG;IACI,MAAM,CAAC,gBAAgB,CAAC,EAC3B,UAAU,GAMb;QAGG,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,mDAAmD;YACxD,IAAI,EAAE;gBACF,aAAa,EAAE,UAAU;aAC5B;YACD,MAAM,EAAE;gBACJ,GAAG,EAAE,yBAAyB;gBAC9B,GAAG,EAAE,0BAA0B;gBAC/B,GAAG,EAAE,oBAAoB;gBACzB,GAAG,EAAE,yBAAyB;aACjC;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;OAKG;IACI,MAAM,CAAC,kBAAkB,CAAC,EAC7B,UAAU,EACV,WAAW,GAOd;QACG,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,2DAA2D;YAChE,IAAI,EAAE;gBACF,aAAa,EAAE,UAAU;aAC5B;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;YAC7B,MAAM,EAAE;gBACJ,GAAG,EAAE,aAAa;gBAClB,GAAG,EAAE,yBAAyB;gBAC9B,GAAG,EAAE,0BAA0B;gBAC/B,GAAG,EAAE,oBAAoB;gBACzB,GAAG,EAAE,yBAAyB;aACjC;SACJ,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { LayoutGenerationRequest } from '../models/LayoutGenerationRequest';
|
|
2
|
+
import type { LayoutGenerationResponse } from '../models/LayoutGenerationResponse';
|
|
3
|
+
import type { LayoutProfile } from '../models/LayoutProfile';
|
|
4
|
+
import type { LayoutProfilePartial } from '../models/LayoutProfilePartial';
|
|
5
|
+
import type { LayoutProfileWrite } from '../models/LayoutProfileWrite';
|
|
6
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
7
|
+
export declare class LayoutOpsService {
|
|
8
|
+
/**
|
|
9
|
+
* List layout profiles
|
|
10
|
+
* List layout profiles filtered by tenant/property
|
|
11
|
+
* @returns LayoutProfile List of layout profiles
|
|
12
|
+
* @throws ApiError
|
|
13
|
+
*/
|
|
14
|
+
static layoutProfileList({ tenant, property, }: {
|
|
15
|
+
/**
|
|
16
|
+
* Filter by tenant ID
|
|
17
|
+
*/
|
|
18
|
+
tenant?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Filter by property ID
|
|
21
|
+
*/
|
|
22
|
+
property?: string;
|
|
23
|
+
}): CancelablePromise<Array<LayoutProfile>>;
|
|
24
|
+
/**
|
|
25
|
+
* Create layout profile
|
|
26
|
+
* @returns LayoutProfile Layout profile created
|
|
27
|
+
* @throws ApiError
|
|
28
|
+
*/
|
|
29
|
+
static layoutProfileCreate({ requestBody, }: {
|
|
30
|
+
requestBody: LayoutProfileWrite;
|
|
31
|
+
}): CancelablePromise<LayoutProfile>;
|
|
32
|
+
/**
|
|
33
|
+
* Retrieve layout profile
|
|
34
|
+
* @returns LayoutProfile Layout profile details
|
|
35
|
+
* @throws ApiError
|
|
36
|
+
*/
|
|
37
|
+
static layoutProfileRetrieve({ id, }: {
|
|
38
|
+
/**
|
|
39
|
+
* Layout profile ID
|
|
40
|
+
*/
|
|
41
|
+
id: string;
|
|
42
|
+
}): CancelablePromise<LayoutProfile>;
|
|
43
|
+
/**
|
|
44
|
+
* Update layout profile
|
|
45
|
+
* @returns LayoutProfile Layout profile updated
|
|
46
|
+
* @throws ApiError
|
|
47
|
+
*/
|
|
48
|
+
static layoutProfileUpdate({ id, requestBody, }: {
|
|
49
|
+
/**
|
|
50
|
+
* Layout profile ID
|
|
51
|
+
*/
|
|
52
|
+
id: string;
|
|
53
|
+
requestBody: LayoutProfilePartial;
|
|
54
|
+
}): CancelablePromise<LayoutProfile>;
|
|
55
|
+
/**
|
|
56
|
+
* Delete layout profile
|
|
57
|
+
* @returns void
|
|
58
|
+
* @throws ApiError
|
|
59
|
+
*/
|
|
60
|
+
static layoutProfileDelete({ id, }: {
|
|
61
|
+
/**
|
|
62
|
+
* Layout profile ID
|
|
63
|
+
*/
|
|
64
|
+
id: string;
|
|
65
|
+
}): CancelablePromise<void>;
|
|
66
|
+
/**
|
|
67
|
+
* Set layout profile as active
|
|
68
|
+
* @returns LayoutProfile Layout profile activated
|
|
69
|
+
* @throws ApiError
|
|
70
|
+
*/
|
|
71
|
+
static layoutProfileSetActive({ id, }: {
|
|
72
|
+
/**
|
|
73
|
+
* Layout profile ID
|
|
74
|
+
*/
|
|
75
|
+
id: string;
|
|
76
|
+
}): CancelablePromise<LayoutProfile>;
|
|
77
|
+
/**
|
|
78
|
+
* Generate layout plan
|
|
79
|
+
* Generate a layout plan for a page archetype using the effective layout profile, brand voice, and design system
|
|
80
|
+
* @returns LayoutGenerationResponse Layout plan generated
|
|
81
|
+
* @throws ApiError
|
|
82
|
+
*/
|
|
83
|
+
static layoutOpsGenerate({ requestBody, }: {
|
|
84
|
+
requestBody: LayoutGenerationRequest;
|
|
85
|
+
}): CancelablePromise<LayoutGenerationResponse>;
|
|
86
|
+
/**
|
|
87
|
+
* Get effective layout profile for property
|
|
88
|
+
* Returns the effective layout profile for a property using resolution logic (assigned → property-active → tenant-default)
|
|
89
|
+
* @returns LayoutProfile Effective layout profile
|
|
90
|
+
* @throws ApiError
|
|
91
|
+
*/
|
|
92
|
+
static layoutOpsEffectiveProfile({ property, }: {
|
|
93
|
+
/**
|
|
94
|
+
* Property slug
|
|
95
|
+
*/
|
|
96
|
+
property: string;
|
|
97
|
+
}): CancelablePromise<LayoutProfile>;
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=LayoutOpsService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LayoutOpsService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/LayoutOpsService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,qBAAa,gBAAgB;IACzB;;;;;OAKG;WACW,iBAAiB,CAAC,EAC5B,MAAM,EACN,QAAQ,GACX,EAAE;QACC;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;KACrB,GAAG,iBAAiB,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IAe3C;;;;OAIG;WACW,mBAAmB,CAAC,EAC9B,WAAW,GACd,EAAE;QACC,WAAW,EAAE,kBAAkB,CAAC;KACnC,GAAG,iBAAiB,CAAC,aAAa,CAAC;IAepC;;;;OAIG;WACW,qBAAqB,CAAC,EAChC,EAAE,GACL,EAAE;QACC;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACd,GAAG,iBAAiB,CAAC,aAAa,CAAC;IAepC;;;;OAIG;WACW,mBAAmB,CAAC,EAC9B,EAAE,EACF,WAAW,GACd,EAAE;QACC;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QACX,WAAW,EAAE,oBAAoB,CAAC;KACrC,GAAG,iBAAiB,CAAC,aAAa,CAAC;IAmBpC;;;;OAIG;WACW,mBAAmB,CAAC,EAC9B,EAAE,GACL,EAAE;QACC;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACd,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAe3B;;;;OAIG;WACW,sBAAsB,CAAC,EACjC,EAAE,GACL,EAAE;QACC;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACd,GAAG,iBAAiB,CAAC,aAAa,CAAC;IAgBpC;;;;;OAKG;WACW,iBAAiB,CAAC,EAC5B,WAAW,GACd,EAAE;QACC,WAAW,EAAE,uBAAuB,CAAC;KACxC,GAAG,iBAAiB,CAAC,wBAAwB,CAAC;IAgB/C;;;;;OAKG;WACW,yBAAyB,CAAC,EACpC,QAAQ,GACX,EAAE;QACC;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;KACpB,GAAG,iBAAiB,CAAC,aAAa,CAAC;CAevC"}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class LayoutOpsService {
|
|
4
|
+
/**
|
|
5
|
+
* List layout profiles
|
|
6
|
+
* List layout profiles filtered by tenant/property
|
|
7
|
+
* @returns LayoutProfile List of layout profiles
|
|
8
|
+
* @throws ApiError
|
|
9
|
+
*/
|
|
10
|
+
static layoutProfileList({ tenant, property, }) {
|
|
11
|
+
return __request(OpenAPI, {
|
|
12
|
+
method: 'GET',
|
|
13
|
+
url: '/api/v1/layoutops/layout-profiles/',
|
|
14
|
+
query: {
|
|
15
|
+
'tenant': tenant,
|
|
16
|
+
'property': property,
|
|
17
|
+
},
|
|
18
|
+
errors: {
|
|
19
|
+
401: `Authentication required`,
|
|
20
|
+
403: `Permission denied with detailed error information`,
|
|
21
|
+
500: `Unexpected server error`,
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Create layout profile
|
|
27
|
+
* @returns LayoutProfile Layout profile created
|
|
28
|
+
* @throws ApiError
|
|
29
|
+
*/
|
|
30
|
+
static layoutProfileCreate({ requestBody, }) {
|
|
31
|
+
return __request(OpenAPI, {
|
|
32
|
+
method: 'POST',
|
|
33
|
+
url: '/api/v1/layoutops/layout-profiles/',
|
|
34
|
+
body: requestBody,
|
|
35
|
+
mediaType: 'application/json',
|
|
36
|
+
errors: {
|
|
37
|
+
400: `Bad request`,
|
|
38
|
+
401: `Authentication required`,
|
|
39
|
+
403: `Permission denied with detailed error information`,
|
|
40
|
+
422: `Validation failed`,
|
|
41
|
+
500: `Unexpected server error`,
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Retrieve layout profile
|
|
47
|
+
* @returns LayoutProfile Layout profile details
|
|
48
|
+
* @throws ApiError
|
|
49
|
+
*/
|
|
50
|
+
static layoutProfileRetrieve({ id, }) {
|
|
51
|
+
return __request(OpenAPI, {
|
|
52
|
+
method: 'GET',
|
|
53
|
+
url: '/api/v1/layoutops/layout-profiles/{id}/',
|
|
54
|
+
path: {
|
|
55
|
+
'id': id,
|
|
56
|
+
},
|
|
57
|
+
errors: {
|
|
58
|
+
401: `Authentication required`,
|
|
59
|
+
403: `Permission denied with detailed error information`,
|
|
60
|
+
404: `Resource not found`,
|
|
61
|
+
500: `Unexpected server error`,
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Update layout profile
|
|
67
|
+
* @returns LayoutProfile Layout profile updated
|
|
68
|
+
* @throws ApiError
|
|
69
|
+
*/
|
|
70
|
+
static layoutProfileUpdate({ id, requestBody, }) {
|
|
71
|
+
return __request(OpenAPI, {
|
|
72
|
+
method: 'PATCH',
|
|
73
|
+
url: '/api/v1/layoutops/layout-profiles/{id}/',
|
|
74
|
+
path: {
|
|
75
|
+
'id': id,
|
|
76
|
+
},
|
|
77
|
+
body: requestBody,
|
|
78
|
+
mediaType: 'application/json',
|
|
79
|
+
errors: {
|
|
80
|
+
400: `Bad request`,
|
|
81
|
+
401: `Authentication required`,
|
|
82
|
+
403: `Permission denied with detailed error information`,
|
|
83
|
+
404: `Resource not found`,
|
|
84
|
+
422: `Validation failed`,
|
|
85
|
+
500: `Unexpected server error`,
|
|
86
|
+
},
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Delete layout profile
|
|
91
|
+
* @returns void
|
|
92
|
+
* @throws ApiError
|
|
93
|
+
*/
|
|
94
|
+
static layoutProfileDelete({ id, }) {
|
|
95
|
+
return __request(OpenAPI, {
|
|
96
|
+
method: 'DELETE',
|
|
97
|
+
url: '/api/v1/layoutops/layout-profiles/{id}/',
|
|
98
|
+
path: {
|
|
99
|
+
'id': id,
|
|
100
|
+
},
|
|
101
|
+
errors: {
|
|
102
|
+
401: `Authentication required`,
|
|
103
|
+
403: `Permission denied with detailed error information`,
|
|
104
|
+
404: `Resource not found`,
|
|
105
|
+
500: `Unexpected server error`,
|
|
106
|
+
},
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Set layout profile as active
|
|
111
|
+
* @returns LayoutProfile Layout profile activated
|
|
112
|
+
* @throws ApiError
|
|
113
|
+
*/
|
|
114
|
+
static layoutProfileSetActive({ id, }) {
|
|
115
|
+
return __request(OpenAPI, {
|
|
116
|
+
method: 'POST',
|
|
117
|
+
url: '/api/v1/layoutops/layout-profiles/{id}/set_active/',
|
|
118
|
+
path: {
|
|
119
|
+
'id': id,
|
|
120
|
+
},
|
|
121
|
+
errors: {
|
|
122
|
+
400: `Bad request`,
|
|
123
|
+
401: `Authentication required`,
|
|
124
|
+
403: `Permission denied with detailed error information`,
|
|
125
|
+
404: `Resource not found`,
|
|
126
|
+
500: `Unexpected server error`,
|
|
127
|
+
},
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Generate layout plan
|
|
132
|
+
* Generate a layout plan for a page archetype using the effective layout profile, brand voice, and design system
|
|
133
|
+
* @returns LayoutGenerationResponse Layout plan generated
|
|
134
|
+
* @throws ApiError
|
|
135
|
+
*/
|
|
136
|
+
static layoutOpsGenerate({ requestBody, }) {
|
|
137
|
+
return __request(OpenAPI, {
|
|
138
|
+
method: 'POST',
|
|
139
|
+
url: '/api/v1/layoutops/generate/',
|
|
140
|
+
body: requestBody,
|
|
141
|
+
mediaType: 'application/json',
|
|
142
|
+
errors: {
|
|
143
|
+
400: `Bad request`,
|
|
144
|
+
401: `Authentication required`,
|
|
145
|
+
403: `Permission denied with detailed error information`,
|
|
146
|
+
404: `Resource not found`,
|
|
147
|
+
422: `Validation failed`,
|
|
148
|
+
500: `Unexpected server error`,
|
|
149
|
+
},
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Get effective layout profile for property
|
|
154
|
+
* Returns the effective layout profile for a property using resolution logic (assigned → property-active → tenant-default)
|
|
155
|
+
* @returns LayoutProfile Effective layout profile
|
|
156
|
+
* @throws ApiError
|
|
157
|
+
*/
|
|
158
|
+
static layoutOpsEffectiveProfile({ property, }) {
|
|
159
|
+
return __request(OpenAPI, {
|
|
160
|
+
method: 'GET',
|
|
161
|
+
url: '/api/v1/layoutops/effective-profile/',
|
|
162
|
+
query: {
|
|
163
|
+
'property': property,
|
|
164
|
+
},
|
|
165
|
+
errors: {
|
|
166
|
+
401: `Authentication required`,
|
|
167
|
+
403: `Permission denied with detailed error information`,
|
|
168
|
+
404: `Resource not found`,
|
|
169
|
+
500: `Unexpected server error`,
|
|
170
|
+
},
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
//# sourceMappingURL=LayoutOpsService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LayoutOpsService.js","sourceRoot":"","sources":["../../../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