@chaosinsight/postoffice-portalclient 1.19.1 → 1.19.3
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/extensions/deals.d.ts +2 -2
- package/dist/extensions/locations.d.ts +3 -3
- package/dist/extensions/organizations.d.ts +2 -2
- package/dist/extensions/organizations.js.map +1 -1
- package/dist/extensions/posts.d.ts +8 -5
- package/dist/extensions/posts.js.map +1 -1
- package/dist/extensions/scheduledTemplates.d.ts +3 -3
- package/dist/extensions/scheduledTemplates.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/extensions/deals.ts +2 -2
- package/src/extensions/locations.ts +3 -3
- package/src/extensions/organizations.ts +3 -14
- package/src/extensions/posts.ts +9 -5
- package/src/extensions/scheduledTemplates.ts +15 -3
- package/src/index.ts +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IOrder,
|
|
1
|
+
import type { IOrder, IPostWithDeal, ISummeryPostStatistics } from "../index";
|
|
2
2
|
import { Extension, IServiceCall } from "@chaosinsight/portalclient";
|
|
3
3
|
export default class Deals extends Extension {
|
|
4
4
|
protected extensionName: string;
|
|
@@ -51,7 +51,7 @@ export interface IPickUpDeal<T extends IProduct<number | null>> extends IDatedDe
|
|
|
51
51
|
PickupEnd: string;
|
|
52
52
|
}
|
|
53
53
|
export interface IPostDeal {
|
|
54
|
-
Post:
|
|
54
|
+
Post: IPostWithDeal;
|
|
55
55
|
Deal: IActiveDealWithOverview;
|
|
56
56
|
}
|
|
57
57
|
export interface IActiveDeal extends IPickUpDeal<IProduct<number>> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Extension, IServiceCall } from "@chaosinsight/portalclient";
|
|
2
|
-
import type { DealState, IContentGroup, IFile, IFilter, IPickUpDeal,
|
|
2
|
+
import type { DealState, IContentGroup, IFile, IFilter, IPickUpDeal, IPostDeal, IPostWithDeal, IPostWithStatisticsAndDeal, IPostWithStatisticsAndLocation, IProduct, IPublicServiceConnection, IPublicUser, IScheduledTemplate, IService, IServiceConnectionIdentity, ISummaryStatistics, ISummeryDealPostStatistics, ITemplateCategory, PostType, ReportComparePeriod, ReportType, ServiceConnectionType, ServiceType } from "../index";
|
|
3
3
|
export default class Locations extends Extension {
|
|
4
4
|
protected extensionName: string;
|
|
5
5
|
get(pageIndex?: number, pageSize?: number, query?: string): IServiceCall<ILocation[]>;
|
|
@@ -12,9 +12,9 @@ export default class Locations extends Extension {
|
|
|
12
12
|
invitationsPost(locationId: number, message: string, name: string, email: string): IServiceCall<void>;
|
|
13
13
|
logosPost(locationId: number, file: File): IServiceCall<IFile>;
|
|
14
14
|
postsGet(locationId: number, from?: Date, to?: Date): IServiceCall<IPostWithStatisticsAndDeal[]>;
|
|
15
|
-
postsPost(locationId: number, serviceType: ServiceConnectionType | null, postType: PostType | undefined, message: string | null, link: string | null, publishDate: Date | null, scheduledTemplateId: number | null, templateId: number | null, deal: IPickUpDeal<IProduct<null>> | null, matchEnd?: string): IServiceCall<
|
|
15
|
+
postsPost(locationId: number, serviceType: ServiceConnectionType | null, postType: PostType | undefined, message: string | null, link: string | null, publishDate: Date | null, scheduledTemplateId: number | null, templateId: number | null, deal: IPickUpDeal<IProduct<null>> | null, matchEnd?: string): IServiceCall<IPostWithDeal>;
|
|
16
16
|
postsStatisticsSummaryGet(locationsId: number, currentFrom: Date, currentTo: Date, previousFrom: Date, previousTo: Date, q?: string, serviceType?: ServiceType, isDeal?: boolean): IServiceCall<ISummaryStatistics<ISummeryDealPostStatistics>>;
|
|
17
|
-
postsRankingsGet(locationsId: number, from: Date, to: Date, q?: string, serviceType?: ServiceType, isDeal?: boolean, pageIndex?: number, pageSize?: number): IServiceCall<
|
|
17
|
+
postsRankingsGet(locationsId: number, from: Date, to: Date, q?: string, serviceType?: ServiceType, isDeal?: boolean, pageIndex?: number, pageSize?: number): IServiceCall<IPostWithStatisticsAndLocation[]>;
|
|
18
18
|
reportSubscriptionPost(locationId: number, userId: string, reportType: ReportType, comparePeriod: ReportComparePeriod, serviceType: ServiceType): IServiceCall<void>;
|
|
19
19
|
reportSubscriptionDelete(locationId: number, userId: string, reportType: ReportType): IServiceCall<void>;
|
|
20
20
|
scheduledTemplatesGet(locationId: number, from?: Date, to?: Date): IServiceCall<IScheduledTemplate[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Extension, IServiceCall } from "@chaosinsight/portalclient";
|
|
2
|
-
import type { IDealReplies, IFile, IFilter, ILocation, ILocationWithServices,
|
|
2
|
+
import type { IDealReplies, IFile, IFilter, ILocation, ILocationWithServices, IPostWithDeal, IPostWithStatisticsAndDeal, IPrivateContentGroup, IPublicUser, IScheduledTemplate, ISummeryDealPostStatistics, ITemplateCategory } from "../index";
|
|
3
3
|
export default class Organizations extends Extension {
|
|
4
4
|
protected extensionName: string;
|
|
5
5
|
get(): IServiceCall<IOrganization[]>;
|
|
@@ -15,7 +15,7 @@ export default class Organizations extends Extension {
|
|
|
15
15
|
locationsPost(organizationId: number, key: string, name: string, shareInsightsWithOrganization: boolean, timeZone: string, userDefinedId: string | null, ticket?: string): IServiceCall<ILocationWithServices>;
|
|
16
16
|
logosPost(organizationId: number, file: File): IServiceCall<IFile>;
|
|
17
17
|
permissionsGet(organizationId: number): IServiceCall<IOrganizationPermission>;
|
|
18
|
-
postsGet(organizationId: number): IServiceCall<
|
|
18
|
+
postsGet(organizationId: number): IServiceCall<IPostWithDeal[]>;
|
|
19
19
|
postsStatisticsGet(organizationId: number, from: Date, to: Date, q?: string, serviceType?: ServiceType, locationId?: number, byPublishDate?: boolean, isDeal?: boolean, pageIndex?: number, pageSize?: number): IServiceCall<IPostWithStatisticsAndDeal[]>;
|
|
20
20
|
postsStatisticsDailyGet(organizationId: number, from: Date, to: Date, q?: string, serviceType?: ServiceType, locationId?: number, isDeal?: boolean): IServiceCall<IDatedPostStatistics[]>;
|
|
21
21
|
postsStatisticsSummaryGet(organizationId: number, currentFrom: Date, currentTo: Date, previousFrom: Date, previousTo: Date, q?: string, serviceType?: ServiceType, locationId?: number, isDeal?: boolean): IServiceCall<ISummaryStatistics<ISummeryDealPostStatistics>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../src/extensions/organizations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAgB,kBAAkB,EAAC,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../src/extensions/organizations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAgB,kBAAkB,EAAC,MAAM,4BAA4B,CAAA;AAKlG,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,SAAS;IACzC,aAAa,GAAW,eAAe,CAAA;IAE1C,GAAG;QACT,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,CAAC,GAAG,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAA;IAC/E,CAAC;IAEM,IAAI,CAAC,IAAY,EAAE,GAAW,EAAE,YAAmC,EAAE,QAAkB;QAC7F,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,EAAC,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,QAAQ,EAAC,EAAE,UAAU,CAAC,QAAQ,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAA;IACnH,CAAC;IAEM,GAAG,CAAC,cAAsB,EAAE,0BAAmC,EAAE,YAA+C,EAAE,WAAyB,EAAE,UAAyB,EAAE,iBAAgC,EAAE,oBAAmC,EAAE,iBAAgC,EAAE,cAA6B,EAAE,iBAAgC,EAAE,QAAkB;QAC1W,OAAO,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAC,0BAA0B,EAAE,YAAY,EAAE,WAAW,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EAAE,CAAC,UAAU,MAAM,YAAY,EAAE,IAAI,EAAE,UAAU,CAAC,GAAG,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAA;IACrI,CAAC;CACD;AAoED,MAAM,CAAN,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC3B,2DAAU,CAAA;IACV,+DAAY,CAAA;IACZ,kFAA0B,CAAA;AAC3B,CAAC,EAJW,gBAAgB,KAAhB,gBAAgB,QAI3B;AAED,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACzB,+DAAU,CAAA;IACV,iGAA2B,CAAA;AAC5B,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;AAmCD,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACtB,0BAAW,CAAA;IACX,wCAAyB,CAAA;IACzB,gCAAiB,CAAA;AAClB,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AAED,SAAS,CAAC,GAAG,CAAC,aAAa,EAAE,eAAe,CAAC,CAAA"}
|
|
@@ -2,8 +2,8 @@ import { Extension, IServiceCall } from "@chaosinsight/portalclient";
|
|
|
2
2
|
import type { IActiveDealWithOverview, IDeal, IDealOverview, IFile, IPickUpDeal, IPostStatistics, IProduct, ServiceConnectionType } from "../index";
|
|
3
3
|
export default class Posts extends Extension {
|
|
4
4
|
protected extensionName: string;
|
|
5
|
-
get(postId: number): IServiceCall<
|
|
6
|
-
post(postId: number): IServiceCall<
|
|
5
|
+
get(postId: number): IServiceCall<IPostWithDeal>;
|
|
6
|
+
post(postId: number): IServiceCall<IPostWithDeal>;
|
|
7
7
|
put(postId: number, serviceType: ServiceConnectionType | undefined, message: string, link: string | null, publishDate: Date, deal: IPickUpDeal<IProduct<number | null>> | null, matchEnd?: string): IServiceCall<void>;
|
|
8
8
|
delete(postId: number): IServiceCall<void>;
|
|
9
9
|
dealsGet(postId: number): IServiceCall<IActiveDealWithOverview>;
|
|
@@ -40,7 +40,7 @@ export interface IPost extends IPostDataWithDeal<IFile, IDealOverview>, ISchedul
|
|
|
40
40
|
Posted: IPostingSuccess | null;
|
|
41
41
|
PostFailed: IPostingFailure | null;
|
|
42
42
|
Deleted: IDeleted;
|
|
43
|
-
DeleteReasonId: DeleteReason;
|
|
43
|
+
DeleteReasonId: DeleteReason | null;
|
|
44
44
|
MatchEnd?: string;
|
|
45
45
|
IsLive: boolean | null;
|
|
46
46
|
StreamDone: boolean | null;
|
|
@@ -48,10 +48,13 @@ export interface IPost extends IPostDataWithDeal<IFile, IDealOverview>, ISchedul
|
|
|
48
48
|
export interface IPostWithStatistics extends IPost {
|
|
49
49
|
Statistics: IPostStatistics;
|
|
50
50
|
}
|
|
51
|
-
export interface
|
|
51
|
+
export interface IPostWithDeal extends IPost {
|
|
52
52
|
Deal: IActiveDealWithOverview;
|
|
53
53
|
}
|
|
54
|
-
export interface
|
|
54
|
+
export interface IPostWithStatisticsAndDeal extends IPostWithStatistics, IPostWithDeal {
|
|
55
|
+
Deal: IActiveDealWithOverview;
|
|
56
|
+
}
|
|
57
|
+
export interface IPostWithStatisticsAndLocation extends IPostWithStatistics {
|
|
55
58
|
Location: IPostLocation;
|
|
56
59
|
}
|
|
57
60
|
export interface IPostFromScheduledTemplate extends IPostWithStatistics {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"posts.js","sourceRoot":"","sources":["../../src/extensions/posts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAgB,kBAAkB,EAAC,MAAM,4BAA4B,CAAA;AAGlG,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,SAAS;IACjC,aAAa,GAAW,OAAO,CAAA;IAElC,GAAG,CAAC,MAAc;QACxB,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,CAAC,GAAG,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAA;IAC9F,CAAC;IAEM,IAAI,CAAC,MAAc;Q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I,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAC,SAAS,EAAE,QAAQ,EAAC,EAAE,UAAU,CAAC,GAAG,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAA;IACpG,CAAC;CACD;AA0GD,MAAM,CAAN,IAAY,SAMX;AAND,WAAY,SAAS;IACpB,+CAAW,CAAA;IACX,mEAAqB,CAAA;IACrB,iEAAoB,CAAA;IACpB,mEAAqB,CAAA;IACrB,mEAAqB,CAAA;AACtB,CAAC,EANW,SAAS,KAAT,SAAS,QAMpB;AAED,MAAM,CAAN,IAAY,QAGX;AAHD,WAAY,QAAQ;IACnB,6CAAW,CAAA;IACX,uCAAQ,CAAA;AACT,CAAC,EAHW,QAAQ,KAAR,QAAQ,QAGnB;AAED,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACvB,yEAAqB,CAAA;IACrB,qEAAmB,CAAA;IACnB,mFAA0B,CAAA;AAC3B,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB;AAED,SAAS,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Extension, IServiceCall } from "@chaosinsight/portalclient";
|
|
2
|
-
import type { IContentGroupContent, IDatedDeal, IFile,
|
|
2
|
+
import type { IContentGroupContent, IDatedDeal, IFile, IPostDataWithDeal, IPostFromScheduledTemplate, IPostStatistics, IPostWithDeal, IProduct, IScheduled, ITemplateFile, ServiceConnectionType } from "../index";
|
|
3
3
|
export default class ScheduledTemplates extends Extension {
|
|
4
4
|
protected extensionName: string;
|
|
5
5
|
get(scheduledTemplateId: number): IServiceCall<IScheduledTemplate>;
|
|
@@ -9,8 +9,8 @@ export default class ScheduledTemplates extends Extension {
|
|
|
9
9
|
filesPost(scheduledTemplatesId: number, file: File): IServiceCall<IFile>;
|
|
10
10
|
filesPut(templateId: number, fileId: number, isDummy: boolean): IServiceCall<void>;
|
|
11
11
|
filesDelete(scheduledTemplatesId: number, fileId: number): IServiceCall<void>;
|
|
12
|
-
postsGet(scheduledTemplatesId: number): IServiceCall<
|
|
13
|
-
postsDelete(scheduledTemplatesId: number): IServiceCall<
|
|
12
|
+
postsGet(scheduledTemplatesId: number): IServiceCall<IPostWithDeal[]>;
|
|
13
|
+
postsDelete(scheduledTemplatesId: number): IServiceCall<IPostWithDeal[]>;
|
|
14
14
|
postsStatisticsGet(scheduledTemplatesId: number): IServiceCall<IPostFromScheduledTemplate[]>;
|
|
15
15
|
}
|
|
16
16
|
export interface IScheduledTemplate extends IPostDataWithDeal<ITemplateFile, IDatedDeal<IProduct<number>>>, IScheduled, IContentGroupContent {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduledTemplates.js","sourceRoot":"","sources":["../../src/extensions/scheduledTemplates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAgB,kBAAkB,EAAC,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"scheduledTemplates.js","sourceRoot":"","sources":["../../src/extensions/scheduledTemplates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAgB,kBAAkB,EAAC,MAAM,4BAA4B,CAAA;AAelG,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,SAAS;IAC9C,aAAa,GAAW,oBAAoB,CAAA;IAE/C,GAAG,CAAC,mBAA2B;QACrC,OAAO,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,CAAC,GAAG,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAA;IAC3G,CAAC;IAEM,IAAI,CAAC,EAAU;QACrB,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,EAAC,EAAE,EAAC,EAAE,UAAU,CAAC,QAAQ,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAA;IACpF,CAAC;IAEM,GAAG,CAAC,mBA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,MAAc;QAC9D,OAAO,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAI,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,CAAC,MAAM,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAA;IAClJ,CAAC;IAEM,QAAQ,CAAC,oBAA4B;QAC3C,OAAO,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAI,QAAQ,EAAE,IAAI,EAAE,UAAU,CAAC,GAAG,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAA;IACxH,CAAC;IAEM,WAAW,CAAC,oBAA4B;QAC9C,OAAO,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAI,QAAQ,EAAE,IAAI,EAAE,UAAU,CAAC,MAAM,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAA;IAC3H,CAAC;IAEM,kBAAkB,CAAC,oBAA4B;QACrD,OAAO,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAI,mBAAmB,EAAE,IAAI,EAAE,UAAU,CAAC,GAAG,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAA;IACnI,CAAC;CACD;AAkBD,SAAS,CAAC,GAAG,CAAC,kBAAkB,EAAE,oBAAoB,CAAC,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export { default as PostOfficeErrorCode } from "./postOfficeErrorCode";
|
|
|
19
19
|
export { DealState } from "./extensions/deals";
|
|
20
20
|
export { FilterType } from "./extensions/filters";
|
|
21
21
|
export { InvitationType, OrganizationRole, ServiceType } from "./extensions/organizations";
|
|
22
|
-
export { PostError, PostType } from "./extensions/posts";
|
|
22
|
+
export { DeleteReason, PostError, PostType } from "./extensions/posts";
|
|
23
23
|
export { ReportComparePeriod, ReportType } from "./extensions/reportSubscription";
|
|
24
24
|
export { ServiceConnectionType } from "./extensions/serviceConnections";
|
|
25
25
|
export { FileStatus } from "./iFile";
|
|
@@ -29,7 +29,7 @@ export type { IFilter } from "./extensions/filters";
|
|
|
29
29
|
export type { ILocation, ILocationInvitation, ILocationWithServices, ILocationFeatures } from "./extensions/locations";
|
|
30
30
|
export type { IOrder, IOrderLine } from "./extensions/orders";
|
|
31
31
|
export type { IDatedPostStatistics, IOrganization, IOrganizationFeatures, IOrganizationInvitation, IOrganizationMembership, IOrganizationPermission, IPostStatistics, ISummaryStatistics, ISummeryLocationStatistics, ISummeryPostStatistics } from "./extensions/organizations";
|
|
32
|
-
export type { IScheduled, IDeleted, IPost, IPostWithStatistics, IPostWithStatisticsAndDeal,
|
|
32
|
+
export type { IScheduled, IDeleted, IPost, IPostWithDeal, IPostWithStatistics, IPostWithStatisticsAndDeal, IPostWithStatisticsAndLocation, IPostDataWithDeal, IPostFromScheduledTemplate, IPostData, IPostingFailure, IPostingSuccess, IPostError, IServicePostError, IPostLocation } from "./extensions/posts";
|
|
33
33
|
export type { IPublicDeal } from "./extensions/publicDeals";
|
|
34
34
|
export type { IReportSubscription } from "./extensions/reportSubscription";
|
|
35
35
|
export type { IScheduledTemplate, IScheduledTemplateStatistics } from "./extensions/scheduledTemplates";
|
package/dist/index.js
CHANGED
|
@@ -19,7 +19,7 @@ export { default as PostOfficeErrorCode } from "./postOfficeErrorCode";
|
|
|
19
19
|
export { DealState } from "./extensions/deals";
|
|
20
20
|
export { FilterType } from "./extensions/filters";
|
|
21
21
|
export { InvitationType, OrganizationRole, ServiceType } from "./extensions/organizations";
|
|
22
|
-
export { PostError, PostType } from "./extensions/posts";
|
|
22
|
+
export { DeleteReason, PostError, PostType } from "./extensions/posts";
|
|
23
23
|
export { ReportComparePeriod, ReportType } from "./extensions/reportSubscription";
|
|
24
24
|
export { ServiceConnectionType } from "./extensions/serviceConnections";
|
|
25
25
|
export { FileStatus } from "./iFile";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,oBAAoB,CAAA;AAC3B,OAAO,sBAAsB,CAAA;AAC7B,OAAO,wBAAwB,CAAA;AAC/B,OAAO,wBAAwB,CAAA;AAC/B,OAAO,qBAAqB,CAAA;AAC5B,OAAO,4BAA4B,CAAA;AACnC,OAAO,wBAAwB,CAAA;AAC/B,OAAO,oBAAoB,CAAA;AAC3B,OAAO,0BAA0B,CAAA;AACjC,OAAO,8BAA8B,CAAA;AACrC,OAAO,iCAAiC,CAAA;AACxC,OAAO,iCAAiC,CAAA;AACxC,OAAO,uBAAuB,CAAA;AAC9B,OAAO,wBAAwB,CAAA;AAC/B,OAAO,kCAAkC,CAAA;AACzC,OAAO,oBAAoB,CAAA;AAE3B,OAAO,EAAC,OAAO,IAAI,mBAAmB,EAAC,MAAM,uBAAuB,CAAA;AAEpE,OAAO,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAA;AAC5C,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAA;AAC/C,OAAO,EAAC,cAAc,EAAC,gBAAgB,EAAE,WAAW,EAAC,MAAM,4BAA4B,CAAA;AACvF,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAC,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,oBAAoB,CAAA;AAC3B,OAAO,sBAAsB,CAAA;AAC7B,OAAO,wBAAwB,CAAA;AAC/B,OAAO,wBAAwB,CAAA;AAC/B,OAAO,qBAAqB,CAAA;AAC5B,OAAO,4BAA4B,CAAA;AACnC,OAAO,wBAAwB,CAAA;AAC/B,OAAO,oBAAoB,CAAA;AAC3B,OAAO,0BAA0B,CAAA;AACjC,OAAO,8BAA8B,CAAA;AACrC,OAAO,iCAAiC,CAAA;AACxC,OAAO,iCAAiC,CAAA;AACxC,OAAO,uBAAuB,CAAA;AAC9B,OAAO,wBAAwB,CAAA;AAC/B,OAAO,kCAAkC,CAAA;AACzC,OAAO,oBAAoB,CAAA;AAE3B,OAAO,EAAC,OAAO,IAAI,mBAAmB,EAAC,MAAM,uBAAuB,CAAA;AAEpE,OAAO,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAA;AAC5C,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAA;AAC/C,OAAO,EAAC,cAAc,EAAC,gBAAgB,EAAE,WAAW,EAAC,MAAM,4BAA4B,CAAA;AACvF,OAAO,EAAC,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAC,MAAM,oBAAoB,CAAA;AACpE,OAAO,EAAC,mBAAmB,EAAE,UAAU,EAAC,MAAM,iCAAiC,CAAA;AAC/E,OAAO,EAAC,qBAAqB,EAAC,MAAM,iCAAiC,CAAA;AACrE,OAAO,EAAC,UAAU,EAAC,MAAM,SAAS,CAAA"}
|
package/package.json
CHANGED
package/src/extensions/deals.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {IOrder,
|
|
1
|
+
import type {IOrder, IPostWithDeal, ISummeryPostStatistics} from "../index"
|
|
2
2
|
import {Extension, HttpMethod, IServiceCall, SessionRequirement} from "@chaosinsight/portalclient"
|
|
3
3
|
|
|
4
4
|
export default class Deals extends Extension {
|
|
@@ -63,7 +63,7 @@ export interface IPickUpDeal<T extends IProduct<number | null>> extends IDatedDe
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
export interface IPostDeal {
|
|
66
|
-
Post:
|
|
66
|
+
Post: IPostWithDeal
|
|
67
67
|
Deal: IActiveDealWithOverview
|
|
68
68
|
}
|
|
69
69
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {Extension, HttpMethod, IServiceCall, SessionRequirement} from "@chaosinsight/portalclient"
|
|
2
2
|
import type {
|
|
3
|
-
DealState, IContentGroup, IFile, IFilter, IPickUpDeal,
|
|
3
|
+
DealState, IContentGroup, IFile, IFilter, IPickUpDeal, IPostDeal, IPostWithDeal, IPostWithStatisticsAndDeal, IPostWithStatisticsAndLocation, IProduct, IPublicServiceConnection, IPublicUser,
|
|
4
4
|
IScheduledTemplate, IService, IServiceConnectionIdentity, ISummaryStatistics, ISummeryDealPostStatistics, ITemplateCategory, PostType,
|
|
5
5
|
ReportComparePeriod, ReportType, ServiceConnectionType, ServiceType
|
|
6
6
|
} from "../index"
|
|
@@ -48,7 +48,7 @@ export default class Locations extends Extension {
|
|
|
48
48
|
return this.call(locationId.toString(10) + "/Posts", {from, to}, HttpMethod.Get, SessionRequirement.authenticated)
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
public postsPost(locationId: number, serviceType: ServiceConnectionType | null, postType: PostType | undefined, message: string | null, link: string | null, publishDate: Date | null, scheduledTemplateId: number | null, templateId: number | null, deal: IPickUpDeal<IProduct<null>> | null, matchEnd?: string): IServiceCall<
|
|
51
|
+
public postsPost(locationId: number, serviceType: ServiceConnectionType | null, postType: PostType | undefined, message: string | null, link: string | null, publishDate: Date | null, scheduledTemplateId: number | null, templateId: number | null, deal: IPickUpDeal<IProduct<null>> | null, matchEnd?: string): IServiceCall<IPostWithDeal> {
|
|
52
52
|
return this.call(locationId.toString(10) + "/Posts", {serviceTypeId: serviceType, postTypeId: postType, message, link, publishDate, scheduledTemplateId, templateId, deal: matchEnd || deal ? {MatchEnd: matchEnd, ...deal} : undefined}, HttpMethod.PostJson, SessionRequirement.authenticated)
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -56,7 +56,7 @@ export default class Locations extends Extension {
|
|
|
56
56
|
return this.call(locationsId.toString(10) + "/Posts/Statistics/Summary", {currentFrom, currentTo, previousFrom, previousTo, q, serviceType, isDeal}, HttpMethod.Get, SessionRequirement.authenticated)
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
public postsRankingsGet(locationsId: number, from: Date, to: Date, q?: string, serviceType?: ServiceType, isDeal?: boolean, pageIndex: number = 0, pageSize: number = 20): IServiceCall<
|
|
59
|
+
public postsRankingsGet(locationsId: number, from: Date, to: Date, q?: string, serviceType?: ServiceType, isDeal?: boolean, pageIndex: number = 0, pageSize: number = 20): IServiceCall<IPostWithStatisticsAndLocation[]> {
|
|
60
60
|
return this.call(locationsId.toString(10) + "/PostRankings", {from, to, q, serviceType, isDeal, pageIndex, pageSize}, HttpMethod.Get, SessionRequirement.authenticated)
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
import {Extension, HttpMethod, IServiceCall, SessionRequirement} from "@chaosinsight/portalclient"
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
IFile,
|
|
5
|
-
IFilter,
|
|
6
|
-
ILocation,
|
|
7
|
-
ILocationWithServices,
|
|
8
|
-
IPost,
|
|
9
|
-
IPostWithStatisticsAndDeal,
|
|
10
|
-
IPrivateContentGroup,
|
|
11
|
-
IPublicUser,
|
|
12
|
-
IScheduledTemplate,
|
|
13
|
-
ISummeryDealPostStatistics,
|
|
14
|
-
ITemplateCategory
|
|
2
|
+
import type {IDealReplies, IFile, IFilter, ILocation, ILocationWithServices, IPostWithDeal, IPostWithStatisticsAndDeal, IPrivateContentGroup,
|
|
3
|
+
IPublicUser, IScheduledTemplate, ISummeryDealPostStatistics, ITemplateCategory
|
|
15
4
|
} from "../index"
|
|
16
5
|
|
|
17
6
|
export default class Organizations extends Extension {
|
|
@@ -69,7 +58,7 @@ export default class Organizations extends Extension {
|
|
|
69
58
|
return this.call(organizationId.toString(10) + "/Permissions", null, HttpMethod.Get, SessionRequirement.authenticated)
|
|
70
59
|
}
|
|
71
60
|
|
|
72
|
-
public postsGet(organizationId: number): IServiceCall<
|
|
61
|
+
public postsGet(organizationId: number): IServiceCall<IPostWithDeal[]> {
|
|
73
62
|
return this.call(organizationId.toString(10) + "/Posts", null, HttpMethod.Get, SessionRequirement.authenticated)
|
|
74
63
|
}
|
|
75
64
|
|
package/src/extensions/posts.ts
CHANGED
|
@@ -4,11 +4,11 @@ import type {IActiveDealWithOverview, IDeal, IDealOverview, IFile, IPickUpDeal,
|
|
|
4
4
|
export default class Posts extends Extension {
|
|
5
5
|
protected extensionName: string = "Posts"
|
|
6
6
|
|
|
7
|
-
public get(postId: number): IServiceCall<
|
|
7
|
+
public get(postId: number): IServiceCall<IPostWithDeal> {
|
|
8
8
|
return this.call(postId.toString(10), null, HttpMethod.Get, SessionRequirement.authenticated)
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
public post(postId: number): IServiceCall<
|
|
11
|
+
public post(postId: number): IServiceCall<IPostWithDeal> {
|
|
12
12
|
return this.call(null, {Id: postId}, HttpMethod.PostJson, SessionRequirement.authenticated)
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -84,7 +84,7 @@ export interface IPost extends IPostDataWithDeal<IFile, IDealOverview>, ISchedul
|
|
|
84
84
|
Posted: IPostingSuccess | null
|
|
85
85
|
PostFailed: IPostingFailure | null
|
|
86
86
|
Deleted: IDeleted
|
|
87
|
-
DeleteReasonId: DeleteReason
|
|
87
|
+
DeleteReasonId: DeleteReason | null
|
|
88
88
|
MatchEnd?: string
|
|
89
89
|
IsLive: boolean | null
|
|
90
90
|
StreamDone: boolean | null
|
|
@@ -94,11 +94,15 @@ export interface IPostWithStatistics extends IPost {
|
|
|
94
94
|
Statistics: IPostStatistics
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
export interface
|
|
97
|
+
export interface IPostWithDeal extends IPost {
|
|
98
98
|
Deal: IActiveDealWithOverview
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
export interface
|
|
101
|
+
export interface IPostWithStatisticsAndDeal extends IPostWithStatistics, IPostWithDeal {
|
|
102
|
+
Deal: IActiveDealWithOverview
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface IPostWithStatisticsAndLocation extends IPostWithStatistics {
|
|
102
106
|
Location: IPostLocation
|
|
103
107
|
}
|
|
104
108
|
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import {Extension, HttpMethod, IServiceCall, SessionRequirement} from "@chaosinsight/portalclient"
|
|
2
|
-
import type {
|
|
2
|
+
import type {
|
|
3
|
+
IContentGroupContent,
|
|
4
|
+
IDatedDeal,
|
|
5
|
+
IFile,
|
|
6
|
+
IPostDataWithDeal,
|
|
7
|
+
IPostFromScheduledTemplate,
|
|
8
|
+
IPostStatistics,
|
|
9
|
+
IPostWithDeal,
|
|
10
|
+
IProduct,
|
|
11
|
+
IScheduled,
|
|
12
|
+
ITemplateFile,
|
|
13
|
+
ServiceConnectionType
|
|
14
|
+
} from "../index"
|
|
3
15
|
|
|
4
16
|
export default class ScheduledTemplates extends Extension {
|
|
5
17
|
protected extensionName: string = "ScheduledTemplates"
|
|
@@ -32,11 +44,11 @@ export default class ScheduledTemplates extends Extension {
|
|
|
32
44
|
return this.call(scheduledTemplatesId.toString(10) + "/Files/" + fileId.toString(10), null, HttpMethod.Delete, SessionRequirement.authenticated)
|
|
33
45
|
}
|
|
34
46
|
|
|
35
|
-
public postsGet(scheduledTemplatesId: number): IServiceCall<
|
|
47
|
+
public postsGet(scheduledTemplatesId: number): IServiceCall<IPostWithDeal[]> {
|
|
36
48
|
return this.call(scheduledTemplatesId.toString(10) + "/Posts", null, HttpMethod.Get, SessionRequirement.authenticated)
|
|
37
49
|
}
|
|
38
50
|
|
|
39
|
-
public postsDelete(scheduledTemplatesId: number): IServiceCall<
|
|
51
|
+
public postsDelete(scheduledTemplatesId: number): IServiceCall<IPostWithDeal[]> {
|
|
40
52
|
return this.call(scheduledTemplatesId.toString(10) + "/Posts", null, HttpMethod.Delete, SessionRequirement.authenticated)
|
|
41
53
|
}
|
|
42
54
|
|
package/src/index.ts
CHANGED
|
@@ -21,7 +21,7 @@ export {default as PostOfficeErrorCode} from "./postOfficeErrorCode"
|
|
|
21
21
|
export {DealState} from "./extensions/deals"
|
|
22
22
|
export {FilterType} from "./extensions/filters"
|
|
23
23
|
export {InvitationType,OrganizationRole, ServiceType} from "./extensions/organizations"
|
|
24
|
-
export {PostError, PostType} from "./extensions/posts"
|
|
24
|
+
export {DeleteReason, PostError, PostType} from "./extensions/posts"
|
|
25
25
|
export {ReportComparePeriod, ReportType} from "./extensions/reportSubscription"
|
|
26
26
|
export {ServiceConnectionType} from "./extensions/serviceConnections"
|
|
27
27
|
export {FileStatus} from "./iFile"
|
|
@@ -34,7 +34,7 @@ export type {ILocation, ILocationInvitation, ILocationWithServices, ILocationFea
|
|
|
34
34
|
export type {IOrder, IOrderLine} from "./extensions/orders"
|
|
35
35
|
export type {IDatedPostStatistics, IOrganization, IOrganizationFeatures, IOrganizationInvitation, IOrganizationMembership, IOrganizationPermission,
|
|
36
36
|
IPostStatistics, ISummaryStatistics, ISummeryLocationStatistics, ISummeryPostStatistics} from "./extensions/organizations"
|
|
37
|
-
export type {IScheduled, IDeleted, IPost, IPostWithStatistics, IPostWithStatisticsAndDeal,
|
|
37
|
+
export type {IScheduled, IDeleted, IPost, IPostWithDeal, IPostWithStatistics, IPostWithStatisticsAndDeal, IPostWithStatisticsAndLocation, IPostDataWithDeal, IPostFromScheduledTemplate, IPostData, IPostingFailure, IPostingSuccess, IPostError, IServicePostError, IPostLocation} from "./extensions/posts"
|
|
38
38
|
export type {IPublicDeal} from "./extensions/publicDeals"
|
|
39
39
|
export type {IReportSubscription} from "./extensions/reportSubscription"
|
|
40
40
|
export type {IScheduledTemplate, IScheduledTemplateStatistics} from "./extensions/scheduledTemplates"
|