@parra/parra-js-sdk 0.2.92 → 0.2.94
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 +9 -1
- package/dist/ParraAPI.js +9 -1
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -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;
|
|
@@ -727,7 +735,7 @@ declare class ParraAPI {
|
|
|
727
735
|
$filter?: string | undefined;
|
|
728
736
|
$expand?: string | undefined;
|
|
729
737
|
$search?: string | undefined;
|
|
730
|
-
} | undefined) => Promise<
|
|
738
|
+
} | undefined) => Promise<CampaignCollectionResponse>;
|
|
731
739
|
getCampaignById: (tenant_id: string, campaign_id: string) => Promise<Campaign>;
|
|
732
740
|
updateCampaignById: (tenant_id: string, campaign_id: string, body?: UpdateCampaignRequestBody | undefined) => Promise<Campaign>;
|
|
733
741
|
deleteCampaignById: (tenant_id: string, campaign_id: string) => Promise<Response>;
|
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";
|