@parra/parra-js-sdk 0.3.15 → 0.3.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/ParraAPI.d.ts +19 -0
- package/dist/ParraAPI.js +14 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -769,6 +769,23 @@ export interface TemplateTagCollectionResponse {
|
|
|
769
769
|
data: Array<TemplateTag>;
|
|
770
770
|
metadata?: TemplateTagCollectionMetadata;
|
|
771
771
|
}
|
|
772
|
+
export interface UpdateBoardRequestBody {
|
|
773
|
+
name: string;
|
|
774
|
+
description?: string | null;
|
|
775
|
+
}
|
|
776
|
+
export interface CreateBoardRequestBody {
|
|
777
|
+
name: string;
|
|
778
|
+
description?: string | null;
|
|
779
|
+
}
|
|
780
|
+
export interface Board {
|
|
781
|
+
id: string;
|
|
782
|
+
created_at: string;
|
|
783
|
+
updated_at: string;
|
|
784
|
+
deleted_at?: string | null;
|
|
785
|
+
tenant_id: string;
|
|
786
|
+
name: string;
|
|
787
|
+
description?: string | null;
|
|
788
|
+
}
|
|
772
789
|
export declare enum ApplicationType {
|
|
773
790
|
ios = "ios"
|
|
774
791
|
}
|
|
@@ -1178,6 +1195,8 @@ declare class ParraAPI {
|
|
|
1178
1195
|
$expand?: string;
|
|
1179
1196
|
$search?: string;
|
|
1180
1197
|
}) => Promise<TemplateTagCollectionResponse>;
|
|
1198
|
+
createBoardForTenantById: (tenant_id: string, body?: CreateBoardRequestBody) => Promise<Board>;
|
|
1199
|
+
listBoardsForTenantById: (tenant_id: string) => Promise<Array<Board>>;
|
|
1181
1200
|
createApplicationForTenantById: (tenant_id: string, body: CreateApplicationRequestBody) => Promise<Application>;
|
|
1182
1201
|
paginateApplicationsForTenantById: (tenant_id: string) => Promise<ApplicationCollectionResponse>;
|
|
1183
1202
|
getApplicationByIdForTenantById: (tenant_id: string, application_id: string, query?: {
|
package/dist/ParraAPI.js
CHANGED
|
@@ -421,6 +421,20 @@ var ParraAPI = /** @class */ (function () {
|
|
|
421
421
|
query: query,
|
|
422
422
|
});
|
|
423
423
|
};
|
|
424
|
+
this.createBoardForTenantById = function (tenant_id, body) {
|
|
425
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards"), {
|
|
426
|
+
method: "post",
|
|
427
|
+
body: JSON.stringify(body),
|
|
428
|
+
headers: {
|
|
429
|
+
"content-type": "application/json",
|
|
430
|
+
},
|
|
431
|
+
});
|
|
432
|
+
};
|
|
433
|
+
this.listBoardsForTenantById = function (tenant_id) {
|
|
434
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards"), {
|
|
435
|
+
method: "get",
|
|
436
|
+
});
|
|
437
|
+
};
|
|
424
438
|
this.createApplicationForTenantById = function (tenant_id, body) {
|
|
425
439
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications"), {
|
|
426
440
|
method: "post",
|