@parra/parra-js-sdk 0.3.553 → 0.3.556
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/ParraAPI.d.ts +3 -4
- package/dist/ParraAPI.js +6 -6
- package/package.json +2 -2
package/dist/ParraAPI.d.ts
CHANGED
@@ -3195,7 +3195,6 @@ export interface CreateTicketRequestBody {
|
|
3195
3195
|
export interface TeamMemberStub {
|
3196
3196
|
id: string;
|
3197
3197
|
tenant_id: string;
|
3198
|
-
user_id?: string | null;
|
3199
3198
|
name: string;
|
3200
3199
|
avatar?: ImageAssetStub | null;
|
3201
3200
|
}
|
@@ -5438,9 +5437,9 @@ declare class ParraAPI {
|
|
5438
5437
|
type?: string;
|
5439
5438
|
}, options?: Options) => Promise<Array<DesignToken>>;
|
5440
5439
|
createTokenForDesignSystem: (tenant_id: string, design_system_id: string, body: CreateDesignTokenRequestBody, options?: Options) => Promise<DesignToken>;
|
5441
|
-
getDesignTokenById: (tenant_id: string, design_token_id: string, options?: Options) => Promise<DesignToken>;
|
5442
|
-
updateDesignTokenById: (tenant_id: string, design_token_id: string, body?: UpdateDesignTokenRequestBody, options?: Options) => Promise<DesignToken>;
|
5443
|
-
deleteDesignTokenById: (tenant_id: string, design_token_id: string, options?: Options) => Promise<Response>;
|
5440
|
+
getDesignTokenById: (tenant_id: string, design_system_id: string, design_token_id: string, options?: Options) => Promise<DesignToken>;
|
5441
|
+
updateDesignTokenById: (tenant_id: string, design_system_id: string, design_token_id: string, body?: UpdateDesignTokenRequestBody, options?: Options) => Promise<DesignToken>;
|
5442
|
+
deleteDesignTokenById: (tenant_id: string, design_system_id: string, design_token_id: string, options?: Options) => Promise<Response>;
|
5444
5443
|
createTheme: (tenant_id: string, body: CreateThemeRequestBody, options?: Options) => Promise<Theme>;
|
5445
5444
|
getThemeById: (tenant_id: string, theme_id: string, options?: Options) => Promise<Theme>;
|
5446
5445
|
updateThemeById: (tenant_id: string, theme_id: string, body?: UpdateThemeRequestBody, options?: Options) => Promise<Theme>;
|
package/dist/ParraAPI.js
CHANGED
@@ -748,19 +748,19 @@ var ParraAPI = /** @class */ (function () {
|
|
748
748
|
"content-type": "application/json",
|
749
749
|
} }, options));
|
750
750
|
};
|
751
|
-
this.getDesignTokenById = function (tenant_id, design_token_id, options) {
|
751
|
+
this.getDesignTokenById = function (tenant_id, design_system_id, design_token_id, options) {
|
752
752
|
if (options === void 0) { options = {}; }
|
753
|
-
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-tokens/").concat(design_token_id), method: "get" }, options));
|
753
|
+
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-systems/").concat(design_system_id, "/tokens/").concat(design_token_id), method: "get" }, options));
|
754
754
|
};
|
755
|
-
this.updateDesignTokenById = function (tenant_id, design_token_id, body, options) {
|
755
|
+
this.updateDesignTokenById = function (tenant_id, design_system_id, design_token_id, body, options) {
|
756
756
|
if (options === void 0) { options = {}; }
|
757
|
-
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-tokens/").concat(design_token_id), method: "put", body: JSON.stringify(body), headers: {
|
757
|
+
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-systems/").concat(design_system_id, "/tokens/").concat(design_token_id), method: "put", body: JSON.stringify(body), headers: {
|
758
758
|
"content-type": "application/json",
|
759
759
|
} }, options));
|
760
760
|
};
|
761
|
-
this.deleteDesignTokenById = function (tenant_id, design_token_id, options) {
|
761
|
+
this.deleteDesignTokenById = function (tenant_id, design_system_id, design_token_id, options) {
|
762
762
|
if (options === void 0) { options = {}; }
|
763
|
-
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-tokens/").concat(design_token_id), method: "delete" }, options));
|
763
|
+
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-systems/").concat(design_system_id, "/tokens/").concat(design_token_id), method: "delete" }, options));
|
764
764
|
};
|
765
765
|
this.createTheme = function (tenant_id, body, options) {
|
766
766
|
if (options === void 0) { options = {}; }
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@parra/parra-js-sdk",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.556",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -23,6 +23,6 @@
|
|
23
23
|
"typescript": "^5.7.3"
|
24
24
|
},
|
25
25
|
"dependencies": {
|
26
|
-
"@parra/http-client": "0.
|
26
|
+
"@parra/http-client": "0.8.0"
|
27
27
|
}
|
28
28
|
}
|