@parra/parra-js-sdk 0.3.437 → 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.
@@ -1458,6 +1458,7 @@ export interface CreatorUpdate {
1458
1458
  status: CreatorUpdateStatus;
1459
1459
  title: string;
1460
1460
  body?: string;
1461
+ scheduled_at?: string | null;
1461
1462
  topic?: CreatorUpdateTopic | null;
1462
1463
  sender?: CreatorUpdateSenderStub;
1463
1464
  template?: CreatorUpdateTemplateStub;
@@ -1480,6 +1481,9 @@ export interface UpdateCreatorUpdateRequestBody {
1480
1481
  post_visibility?: CreatorUpdateVisibilityType;
1481
1482
  attachment_visibility?: CreatorUpdateVisibilityType;
1482
1483
  }
1484
+ export interface ScheduleCreatorUpdateRequestBody {
1485
+ schedule_at: string;
1486
+ }
1483
1487
  export interface FeedView {
1484
1488
  id: string;
1485
1489
  created_at: string;
@@ -4576,6 +4580,7 @@ declare class ParraAPI {
4576
4580
  updateCreatorUpdate: (tenant_id: string, creator_update_id: string, body?: UpdateCreatorUpdateRequestBody, options?: Options) => Promise<CreatorUpdate>;
4577
4581
  deleteCreatorUpdate: (tenant_id: string, creator_update_id: string, options?: Options) => Promise<Response>;
4578
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>;
4579
4584
  deleteAttachmentForCreatorUpdateById: (tenant_id: string, creator_update_id: string, creator_update_attachment_id: string, options?: Options) => Promise<Response>;
4580
4585
  paginateFeedsForTenant: (tenant_id: string, query?: {
4581
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.437",
3
+ "version": "0.3.439",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",