@parra/parra-js-sdk 0.2.93 → 0.2.95
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 +39 -1
- package/dist/ParraAPI.js +34 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -268,6 +268,31 @@ export interface TeamMember {
|
|
|
268
268
|
export declare type TeamMemberListResponse = Array<TeamMember>;
|
|
269
269
|
export interface AnswerData {
|
|
270
270
|
}
|
|
271
|
+
export interface UpdateAnalyticEventTypeRequestBody {
|
|
272
|
+
description?: string | null;
|
|
273
|
+
}
|
|
274
|
+
export interface CreateAnalyticEventTypeRequestBody {
|
|
275
|
+
description?: string | null;
|
|
276
|
+
name: string;
|
|
277
|
+
}
|
|
278
|
+
export interface AnalyticEventType {
|
|
279
|
+
id: string;
|
|
280
|
+
created_at: string;
|
|
281
|
+
updated_at: string;
|
|
282
|
+
deleted_at?: string | null;
|
|
283
|
+
tenant_id: string;
|
|
284
|
+
name: string;
|
|
285
|
+
description?: string | null;
|
|
286
|
+
internal: boolean;
|
|
287
|
+
}
|
|
288
|
+
export interface AnalyticEventTypeCollectionResponse {
|
|
289
|
+
page: number;
|
|
290
|
+
page_count: number;
|
|
291
|
+
page_size: number;
|
|
292
|
+
total_count: number;
|
|
293
|
+
data: Array<AnalyticEventType>;
|
|
294
|
+
}
|
|
295
|
+
export declare type AnalyticEventTypeListResponse = Array<AnalyticEventType>;
|
|
271
296
|
export interface UpdateAppAreaRequestBody {
|
|
272
297
|
title: string;
|
|
273
298
|
slug: string;
|
|
@@ -721,6 +746,19 @@ declare class ParraAPI {
|
|
|
721
746
|
getTeamMembersForTenantById: (tenant_id: string) => Promise<TeamMemberListResponse>;
|
|
722
747
|
deleteTeamMemberForTenantById: (tenant_id: string, team_member_id: string) => Promise<Response>;
|
|
723
748
|
updateTeamMemberUserForTenantById: (tenant_id: string, team_member_id: string) => Promise<Response>;
|
|
749
|
+
createAnalyticEventTypeForTenantById: (tenant_id: string, body?: CreateAnalyticEventTypeRequestBody | undefined) => Promise<AnalyticEventType>;
|
|
750
|
+
paginateAnalyticEventTypesForTenantById: (tenant_id: string, query?: {
|
|
751
|
+
$select?: string | undefined;
|
|
752
|
+
$top?: number | undefined;
|
|
753
|
+
$skip?: number | undefined;
|
|
754
|
+
$orderby?: string | undefined;
|
|
755
|
+
$filter?: string | undefined;
|
|
756
|
+
$expand?: string | undefined;
|
|
757
|
+
$search?: string | undefined;
|
|
758
|
+
} | undefined) => Promise<AnalyticEventTypeListResponse>;
|
|
759
|
+
getAnalyticEventTypeById: (tenant_id: string, analytic_event_type_id: string) => Promise<AnalyticEventType>;
|
|
760
|
+
updateAnalyticEventTypeById: (tenant_id: string, analytic_event_type_id: string, body?: UpdateAnalyticEventTypeRequestBody | undefined) => Promise<AnalyticEventType>;
|
|
761
|
+
deleteAnalyticEventTypeById: (tenant_id: string, analytic_event_type_id: string) => Promise<Response>;
|
|
724
762
|
createAppArea: (tenant_id: string, body?: CreateAppAreaRequestBody | undefined) => Promise<AppArea>;
|
|
725
763
|
listAppAreas: (tenant_id: string) => Promise<AppAreaListResponse>;
|
|
726
764
|
getAppAreaById: (tenant_id: string, app_area_id: string) => Promise<AppArea>;
|
|
@@ -735,7 +773,7 @@ declare class ParraAPI {
|
|
|
735
773
|
$filter?: string | undefined;
|
|
736
774
|
$expand?: string | undefined;
|
|
737
775
|
$search?: string | undefined;
|
|
738
|
-
} | undefined) => Promise<
|
|
776
|
+
} | undefined) => Promise<CampaignCollectionResponse>;
|
|
739
777
|
getCampaignById: (tenant_id: string, campaign_id: string) => Promise<Campaign>;
|
|
740
778
|
updateCampaignById: (tenant_id: string, campaign_id: string, body?: UpdateCampaignRequestBody | undefined) => Promise<Campaign>;
|
|
741
779
|
deleteCampaignById: (tenant_id: string, campaign_id: string) => Promise<Response>;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -220,6 +220,40 @@ var ParraAPI = /** @class */ (function () {
|
|
|
220
220
|
method: "post",
|
|
221
221
|
});
|
|
222
222
|
};
|
|
223
|
+
this.createAnalyticEventTypeForTenantById = function (tenant_id, body) {
|
|
224
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/analytics/events/types"), {
|
|
225
|
+
method: "post",
|
|
226
|
+
body: JSON.stringify(body),
|
|
227
|
+
headers: {
|
|
228
|
+
"content-type": "application/json",
|
|
229
|
+
},
|
|
230
|
+
});
|
|
231
|
+
};
|
|
232
|
+
this.paginateAnalyticEventTypesForTenantById = function (tenant_id, query) {
|
|
233
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/analytics/events/types"), {
|
|
234
|
+
method: "get",
|
|
235
|
+
query: query,
|
|
236
|
+
});
|
|
237
|
+
};
|
|
238
|
+
this.getAnalyticEventTypeById = function (tenant_id, analytic_event_type_id) {
|
|
239
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/analytics/events/types/").concat(analytic_event_type_id), {
|
|
240
|
+
method: "get",
|
|
241
|
+
});
|
|
242
|
+
};
|
|
243
|
+
this.updateAnalyticEventTypeById = function (tenant_id, analytic_event_type_id, body) {
|
|
244
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/analytics/events/types/").concat(analytic_event_type_id), {
|
|
245
|
+
method: "put",
|
|
246
|
+
body: JSON.stringify(body),
|
|
247
|
+
headers: {
|
|
248
|
+
"content-type": "application/json",
|
|
249
|
+
},
|
|
250
|
+
});
|
|
251
|
+
};
|
|
252
|
+
this.deleteAnalyticEventTypeById = function (tenant_id, analytic_event_type_id) {
|
|
253
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/analytics/events/types/").concat(analytic_event_type_id), {
|
|
254
|
+
method: "delete",
|
|
255
|
+
});
|
|
256
|
+
};
|
|
223
257
|
this.createAppArea = function (tenant_id, body) {
|
|
224
258
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-areas"), {
|
|
225
259
|
method: "post",
|