@supernova-studio/client 0.59.14 → 0.59.16
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/index.d.mts +31 -1
- package/dist/index.d.ts +31 -1
- package/dist/index.js +43 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +42 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/endpoints/design-system/design-systems.ts +3 -0
- package/src/api/endpoints/design-system/index.ts +1 -0
- package/src/api/endpoints/design-system/redirects.ts +46 -0
package/dist/index.mjs
CHANGED
|
@@ -3300,7 +3300,7 @@ var ImportJob = Entity.extend({
|
|
|
3300
3300
|
var ImportFunctionInput = z91.object({
|
|
3301
3301
|
importJobId: z91.string(),
|
|
3302
3302
|
importContextId: z91.string(),
|
|
3303
|
-
designSystemId: z91.string()
|
|
3303
|
+
designSystemId: z91.string()
|
|
3304
3304
|
});
|
|
3305
3305
|
var ImportedFigmaSourceData = z91.object({
|
|
3306
3306
|
sourceId: z91.string(),
|
|
@@ -3463,11 +3463,7 @@ var DataSourceImportModel = z97.object({
|
|
|
3463
3463
|
fileName: z97.string().optional(),
|
|
3464
3464
|
thumbnailUrl: z97.string().optional()
|
|
3465
3465
|
});
|
|
3466
|
-
var
|
|
3467
|
-
png: FigmaPngRenderImportModel,
|
|
3468
|
-
svg: FigmaSvgRenderImportModel
|
|
3469
|
-
});
|
|
3470
|
-
var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
|
|
3466
|
+
var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeBase.extend({
|
|
3471
3467
|
children: z98.lazy(() => FigmaFileStructureNodeImportModel.array())
|
|
3472
3468
|
});
|
|
3473
3469
|
var FigmaFileStructureImportModelPart = z98.object({
|
|
@@ -8103,6 +8099,43 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
8103
8099
|
}
|
|
8104
8100
|
};
|
|
8105
8101
|
|
|
8102
|
+
// src/api/endpoints/design-system/redirects.ts
|
|
8103
|
+
var DesignSystemPageRedirectsEndpoint = class {
|
|
8104
|
+
constructor(requestExecutor) {
|
|
8105
|
+
this.requestExecutor = requestExecutor;
|
|
8106
|
+
}
|
|
8107
|
+
create(dsId, body) {
|
|
8108
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/documentation/redirects`, DTOPageRedirectResponse, {
|
|
8109
|
+
body,
|
|
8110
|
+
method: "POST"
|
|
8111
|
+
});
|
|
8112
|
+
}
|
|
8113
|
+
list(dsId) {
|
|
8114
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/documentation/redirects`, DTOPageRedirectListResponse, {
|
|
8115
|
+
method: "GET"
|
|
8116
|
+
});
|
|
8117
|
+
}
|
|
8118
|
+
update(dsId, redirectId, body) {
|
|
8119
|
+
return this.requestExecutor.json(
|
|
8120
|
+
`/design-systems/${dsId}/documentation/redirects/${redirectId}`,
|
|
8121
|
+
DTOPageRedirectResponse,
|
|
8122
|
+
{
|
|
8123
|
+
body,
|
|
8124
|
+
method: "PUT"
|
|
8125
|
+
}
|
|
8126
|
+
);
|
|
8127
|
+
}
|
|
8128
|
+
delete(dsId, redirectId) {
|
|
8129
|
+
return this.requestExecutor.json(
|
|
8130
|
+
`/design-systems/${dsId}/documentation/redirects/${redirectId}`,
|
|
8131
|
+
DTOPageRedirectDeleteResponse,
|
|
8132
|
+
{
|
|
8133
|
+
method: "DELETE"
|
|
8134
|
+
}
|
|
8135
|
+
);
|
|
8136
|
+
}
|
|
8137
|
+
};
|
|
8138
|
+
|
|
8106
8139
|
// src/api/endpoints/design-system/design-systems.ts
|
|
8107
8140
|
var DesignSystemsEndpoint = class {
|
|
8108
8141
|
constructor(requestExecutor) {
|
|
@@ -8112,11 +8145,13 @@ var DesignSystemsEndpoint = class {
|
|
|
8112
8145
|
__publicField(this, "bff");
|
|
8113
8146
|
__publicField(this, "sources");
|
|
8114
8147
|
__publicField(this, "contacts");
|
|
8148
|
+
__publicField(this, "redirects");
|
|
8115
8149
|
this.members = new DesignSystemMembersEndpoint(requestExecutor);
|
|
8116
8150
|
this.versions = new DesignSystemVersionsEndpoint(requestExecutor);
|
|
8117
8151
|
this.bff = new DesignSystemBffEndpoint(requestExecutor);
|
|
8118
8152
|
this.sources = new DesignSystemSourcesEndpoint(requestExecutor);
|
|
8119
8153
|
this.contacts = new DesignSystemContactsEndpoint(requestExecutor);
|
|
8154
|
+
this.redirects = new DesignSystemPageRedirectsEndpoint(requestExecutor);
|
|
8120
8155
|
}
|
|
8121
8156
|
create(body) {
|
|
8122
8157
|
return this.requestExecutor.json("/design-systems", DTODesignSystemResponse, { method: "POST", body });
|
|
@@ -13651,6 +13686,7 @@ export {
|
|
|
13651
13686
|
DesignSystemComponentEndpoint,
|
|
13652
13687
|
DesignSystemContactsEndpoint,
|
|
13653
13688
|
DesignSystemMembersEndpoint,
|
|
13689
|
+
DesignSystemPageRedirectsEndpoint,
|
|
13654
13690
|
DesignSystemSourcesEndpoint,
|
|
13655
13691
|
DesignSystemVersionsEndpoint,
|
|
13656
13692
|
DesignSystemsEndpoint,
|