@parra/parra-js-sdk 0.3.438 → 0.3.439

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.
@@ -1481,6 +1481,9 @@ export interface UpdateCreatorUpdateRequestBody {
1481
1481
  post_visibility?: CreatorUpdateVisibilityType;
1482
1482
  attachment_visibility?: CreatorUpdateVisibilityType;
1483
1483
  }
1484
+ export interface ScheduleCreatorUpdateRequestBody {
1485
+ schedule_at: string;
1486
+ }
1484
1487
  export interface FeedView {
1485
1488
  id: string;
1486
1489
  created_at: string;
@@ -4577,6 +4580,7 @@ declare class ParraAPI {
4577
4580
  updateCreatorUpdate: (tenant_id: string, creator_update_id: string, body?: UpdateCreatorUpdateRequestBody, options?: Options) => Promise<CreatorUpdate>;
4578
4581
  deleteCreatorUpdate: (tenant_id: string, creator_update_id: string, options?: Options) => Promise<Response>;
4579
4582
  sendCreatorUpdateForTenant: (tenant_id: string, creator_update_id: string, options?: Options) => Promise<CreatorUpdate>;
4583
+ scheduleCreatorUpdateForTenant: (tenant_id: string, creator_update_id: string, body: ScheduleCreatorUpdateRequestBody, options?: Options) => Promise<CreatorUpdate>;
4580
4584
  deleteAttachmentForCreatorUpdateById: (tenant_id: string, creator_update_id: string, creator_update_attachment_id: string, options?: Options) => Promise<Response>;
4581
4585
  paginateFeedsForTenant: (tenant_id: string, query?: {
4582
4586
  $select?: string;
package/dist/ParraAPI.js CHANGED
@@ -968,6 +968,12 @@ var ParraAPI = /** @class */ (function () {
968
968
  if (options === void 0) { options = {}; }
969
969
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id, "/send"), __assign({ method: "post" }, options));
970
970
  };
971
+ this.scheduleCreatorUpdateForTenant = function (tenant_id, creator_update_id, body, options) {
972
+ if (options === void 0) { options = {}; }
973
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id, "/schedule"), __assign({ method: "post", body: JSON.stringify(body), headers: {
974
+ "content-type": "application/json",
975
+ } }, options));
976
+ };
971
977
  this.deleteAttachmentForCreatorUpdateById = function (tenant_id, creator_update_id, creator_update_attachment_id, options) {
972
978
  if (options === void 0) { options = {}; }
973
979
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id, "/attachments/").concat(creator_update_attachment_id), __assign({ method: "delete" }, options));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.438",
3
+ "version": "0.3.439",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",