@parra/parra-js-sdk 0.2.92 → 0.2.93

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.
@@ -296,6 +296,13 @@ export interface AppAreaCollectionResponse {
296
296
  data: Array<AppArea>;
297
297
  }
298
298
  export declare type AppAreaListResponse = Array<AppArea>;
299
+ export declare enum CampaignStatus {
300
+ active = "active",
301
+ draft = "draft",
302
+ scheduled = "scheduled",
303
+ complete = "complete",
304
+ closed = "closed"
305
+ }
299
306
  export interface UpdateCampaignRequestBody {
300
307
  name: string;
301
308
  description?: string | null;
@@ -315,6 +322,7 @@ export interface Campaign {
315
322
  published_at?: string | null;
316
323
  start_at?: string | null;
317
324
  end_at?: string | null;
325
+ status: CampaignStatus;
318
326
  }
319
327
  export interface CampaignCollectionResponse {
320
328
  page: number;
package/dist/ParraAPI.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QuestionStatus = exports.QuestionKind = exports.QuestionType = exports.CardItemType = exports.SubscriptionStatus = exports.Interval = exports.Currency = void 0;
3
+ exports.QuestionStatus = exports.QuestionKind = exports.QuestionType = exports.CardItemType = exports.CampaignStatus = exports.SubscriptionStatus = exports.Interval = exports.Currency = void 0;
4
4
  var Currency;
5
5
  (function (Currency) {
6
6
  Currency["usd"] = "usd";
@@ -20,6 +20,14 @@ var SubscriptionStatus;
20
20
  SubscriptionStatus["canceled"] = "canceled";
21
21
  SubscriptionStatus["unpaid"] = "unpaid";
22
22
  })(SubscriptionStatus = exports.SubscriptionStatus || (exports.SubscriptionStatus = {}));
23
+ var CampaignStatus;
24
+ (function (CampaignStatus) {
25
+ CampaignStatus["active"] = "active";
26
+ CampaignStatus["draft"] = "draft";
27
+ CampaignStatus["scheduled"] = "scheduled";
28
+ CampaignStatus["complete"] = "complete";
29
+ CampaignStatus["closed"] = "closed";
30
+ })(CampaignStatus = exports.CampaignStatus || (exports.CampaignStatus = {}));
23
31
  var CardItemType;
24
32
  (function (CardItemType) {
25
33
  CardItemType["question"] = "question";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.2.92",
3
+ "version": "0.2.93",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",