@chaosinsight/postoffice-portalclient 1.18.8 → 1.18.9
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/filters.d.ts +1 -1
- package/dist/extensions/filters.js +2 -2
- package/dist/extensions/filters.js.map +1 -1
- package/dist/extensions/organizations.d.ts +6 -5
- package/dist/extensions/organizations.js +4 -4
- package/dist/extensions/organizations.js.map +1 -1
- package/dist/extensions/posts.d.ts +1 -1
- package/dist/extensions/scheduledTemplates.d.ts +1 -1
- package/dist/extensions/scheduledTemplates.js +2 -2
- package/dist/extensions/scheduledTemplates.js.map +1 -1
- package/dist/extensions/serviceConnections.d.ts +17 -0
- package/dist/extensions/serviceConnections.js +3 -0
- package/dist/extensions/serviceConnections.js.map +1 -1
- package/dist/extensions/templatesCategories.d.ts +1 -1
- package/dist/extensions/templatesCategories.js +2 -2
- package/dist/extensions/templatesCategories.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/extensions/filters.ts +2 -2
- package/src/extensions/organizations.ts +8 -7
- package/src/extensions/posts.ts +1 -1
- package/src/extensions/scheduledTemplates.ts +2 -2
- package/src/extensions/serviceConnections.ts +22 -0
- package/src/extensions/templatesCategories.ts +2 -2
- package/src/index.ts +2 -2
|
@@ -2,7 +2,7 @@ import { Extension, IServiceCall } from "@chaosinsight/portalclient";
|
|
|
2
2
|
import type { IFile } from "../index";
|
|
3
3
|
export default class Filters extends Extension {
|
|
4
4
|
protected extensionName: string;
|
|
5
|
-
put(filterId: number, name: string, isPublished: boolean, data: object, file?: File): IServiceCall<void>;
|
|
5
|
+
put(filterId: number, name: string, isPublished: boolean, data: object, file?: File, contentGroupId?: number): IServiceCall<void>;
|
|
6
6
|
delete(filterId: number): IServiceCall<void>;
|
|
7
7
|
}
|
|
8
8
|
export interface IFilter {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Extension, HttpMethod, SessionRequirement } from "@chaosinsight/portalclient";
|
|
2
2
|
export default class Filters extends Extension {
|
|
3
3
|
extensionName = "Filters";
|
|
4
|
-
put(filterId, name, isPublished, data, file) {
|
|
5
|
-
return this.call(filterId.toString(10), { name, isPublished, data, file }, HttpMethod.Put, SessionRequirement.authenticated);
|
|
4
|
+
put(filterId, name, isPublished, data, file, contentGroupId) {
|
|
5
|
+
return this.call(filterId.toString(10), { name, isPublished, data, file, contentGroupId }, HttpMethod.Put, SessionRequirement.authenticated);
|
|
6
6
|
}
|
|
7
7
|
delete(filterId) {
|
|
8
8
|
return this.call(filterId.toString(10), null, HttpMethod.Delete, SessionRequirement.authenticated);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../src/extensions/filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAgB,kBAAkB,EAAC,MAAM,4BAA4B,CAAA;AAGlG,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,SAAS;IACnC,aAAa,GAAW,SAAS,CAAA;IAEpC,GAAG,CAAC,QAAgB,EAAE,IAAY,EAAE,WAAoB,EAAE,IAAY,EAAE,IAAW;
|
|
1
|
+
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../src/extensions/filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAgB,kBAAkB,EAAC,MAAM,4BAA4B,CAAA;AAGlG,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,SAAS;IACnC,aAAa,GAAW,SAAS,CAAA;IAEpC,GAAG,CAAC,QAAgB,EAAE,IAAY,EAAE,WAAoB,EAAE,IAAY,EAAE,IAAW,EAAE,cAAuB;QAClH,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAC,EAAE,UAAU,CAAC,GAAG,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAA;IAC3I,CAAC;IAEM,MAAM,CAAC,QAAgB;QAC7B,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,CAAC,MAAM,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAA;IACnG,CAAC;CACD;AAaD,MAAM,CAAN,IAAY,UAOX;AAPD,WAAY,UAAU;IACrB,yDAAe,CAAA;IACf,6CAAK,CAAA;IACL,6CAAK,CAAA;IACL,6CAAK,CAAA;IACL,iDAAO,CAAA;IACP,2CAAI,CAAA;AACL,CAAC,EAPW,UAAU,KAAV,UAAU,QAOrB;AAED,SAAS,CAAC,GAAG,CAAC,OAAO,EAAE,SAAS,CAAC,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Extension, IServiceCall } from "@chaosinsight/portalclient";
|
|
2
|
-
import type { IDealReplies, IFile, IFilter, ILocation, ILocationWithServices, IPost,
|
|
2
|
+
import type { IDealReplies, IFile, IFilter, ILocation, ILocationWithServices, IPost, 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[]>;
|
|
6
|
-
post(name: string, key: string, featureFlags: IOrganizationFeatures): IServiceCall<IOrganization>;
|
|
7
|
-
put(organizationId: number, isDealMessagingPrioritized: boolean, featureFlags: IOrganizationFeatures | undefined, dealReplies: IDealReplies, dealFooter: string | null, dealVariantFooter: string | null, dealOutOfStockHeader: string | null, dealExpiredHeader: string | null, dealLiveFooter: string | null, dealAlcoholFooter: string | null): IServiceCall<void>;
|
|
6
|
+
post(name: string, key: string, featureFlags: IOrganizationFeatures, isActive?: boolean): IServiceCall<IOrganization>;
|
|
7
|
+
put(organizationId: number, isDealMessagingPrioritized: boolean, featureFlags: IOrganizationFeatures | undefined, dealReplies: IDealReplies, dealFooter: string | null, dealVariantFooter: string | null, dealOutOfStockHeader: string | null, dealExpiredHeader: string | null, dealLiveFooter: string | null, dealAlcoholFooter: string | null, isActive?: boolean): IServiceCall<void>;
|
|
8
8
|
patch(organizationId: number, locationSignupToken: "refresh"): IServiceCall<void>;
|
|
9
9
|
contentGroupsGet(organizationId: number): IServiceCall<IPrivateContentGroup[]>;
|
|
10
10
|
contentGroupsPost(organizationId: number, name: string): IServiceCall<IPrivateContentGroup>;
|
|
@@ -16,10 +16,10 @@ export default class Organizations extends Extension {
|
|
|
16
16
|
logosPost(organizationId: number, file: File): IServiceCall<IFile>;
|
|
17
17
|
permissionsGet(organizationId: number): IServiceCall<IOrganizationPermission>;
|
|
18
18
|
postsGet(organizationId: number): IServiceCall<IPost[]>;
|
|
19
|
-
postsStatisticsGet(organizationId: number, from: Date, to: Date, q?: string, serviceType?: ServiceType, locationId?: number, byPublishDate?: boolean, isDeal?: boolean, pageIndex?: number, pageSize?: number): IServiceCall<
|
|
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>>;
|
|
22
|
-
postsStatisticsRankingGet(organizationId: number, from: Date, to: Date, q?: string, serviceType?: ServiceType, isDeal?: boolean, pageIndex?: number, pageSize?: number): IServiceCall<
|
|
22
|
+
postsStatisticsRankingGet(organizationId: number, from: Date, to: Date, q?: string, serviceType?: ServiceType, isDeal?: boolean, pageIndex?: number, pageSize?: number): IServiceCall<IPostWithStatisticsAndDeal[]>;
|
|
23
23
|
locationsStatisticsSummaryGet(organizationId: number, currentFrom: Date, currentTo: Date, previousFrom: Date, previousTo: Date, q?: string, serviceType?: ServiceType, locationId?: number, isDeal?: boolean): IServiceCall<ISummaryStatistics<ISummeryLocationStatistics[]>>;
|
|
24
24
|
scheduledTemplatesGet(organizationId: number, from?: Date, to?: Date): IServiceCall<IScheduledTemplate[]>;
|
|
25
25
|
templateCategoriesGet(organizationId: number): IServiceCall<ITemplateCategory[]>;
|
|
@@ -52,6 +52,7 @@ export interface IOrganization {
|
|
|
52
52
|
FeatureFlags: IOrganizationFeatures;
|
|
53
53
|
Locations: number;
|
|
54
54
|
LocationsWithDeals: number;
|
|
55
|
+
IsActive: boolean;
|
|
55
56
|
}
|
|
56
57
|
export interface IOrganizationFeatures {
|
|
57
58
|
IsReviewRequiredEnabled: boolean;
|
|
@@ -4,11 +4,11 @@ export default class Organizations extends Extension {
|
|
|
4
4
|
get() {
|
|
5
5
|
return this.call(null, null, HttpMethod.Get, SessionRequirement.authenticated);
|
|
6
6
|
}
|
|
7
|
-
post(name, key, featureFlags) {
|
|
8
|
-
return this.call(null, { name, key, featureFlags }, HttpMethod.PostJson, SessionRequirement.authenticated);
|
|
7
|
+
post(name, key, featureFlags, isActive) {
|
|
8
|
+
return this.call(null, { name, key, featureFlags, isActive }, HttpMethod.PostJson, SessionRequirement.authenticated);
|
|
9
9
|
}
|
|
10
|
-
put(organizationId, isDealMessagingPrioritized, featureFlags, dealReplies, dealFooter, dealVariantFooter, dealOutOfStockHeader, dealExpiredHeader, dealLiveFooter, dealAlcoholFooter) {
|
|
11
|
-
return this.call(organizationId.toString(10), { isDealMessagingPrioritized, featureFlags, dealReplies, dealFooter, dealVariantFooter, dealOutOfStockHeader, dealExpiredHeader, dealLiveFooter, dealAlcoholFooter }, HttpMethod.PutJson, SessionRequirement.authenticated);
|
|
10
|
+
put(organizationId, isDealMessagingPrioritized, featureFlags, dealReplies, dealFooter, dealVariantFooter, dealOutOfStockHeader, dealExpiredHeader, dealLiveFooter, dealAlcoholFooter, isActive) {
|
|
11
|
+
return this.call(organizationId.toString(10), { isDealMessagingPrioritized, featureFlags, dealReplies, dealFooter, dealVariantFooter, dealOutOfStockHeader, dealExpiredHeader, dealLiveFooter, dealAlcoholFooter, isActive }, HttpMethod.PutJson, SessionRequirement.authenticated);
|
|
12
12
|
}
|
|
13
13
|
patch(organizationId, locationSignupToken) {
|
|
14
14
|
return this.call(organizationId.toString(10), { locationSignupToken }, HttpMethod.PatchJson, SessionRequirement.authenticated);
|
|
@@ -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;AAgBlG,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;
|
|
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;AAgBlG,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,aA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
4
4
|
protected extensionName: string;
|
|
5
5
|
get(scheduledTemplateId: number): IServiceCall<IScheduledTemplate>;
|
|
6
6
|
post(id: number): IServiceCall<IScheduledTemplate>;
|
|
7
|
-
put(scheduledTemplateId: number, serviceType?: ServiceConnectionType, message?: string, link?: string | null, publishDate?: Date, deal?: IDatedDeal<IProduct<number | null>> | null, isDraft?: boolean, isMediaLocked?: boolean, isMessageLocked?: boolean, isPreApproved?: boolean, lockedPublishDateStart?: Date | null, lockedPublishDateEnd?: Date | null): IServiceCall<void>;
|
|
7
|
+
put(scheduledTemplateId: number, serviceType?: ServiceConnectionType, message?: string, link?: string | null, publishDate?: Date, deal?: IDatedDeal<IProduct<number | null>> | null, isDraft?: boolean, isMediaLocked?: boolean, isMessageLocked?: boolean, isPreApproved?: boolean, lockedPublishDateStart?: Date | null, lockedPublishDateEnd?: Date | null, contentGroupId?: number): IServiceCall<void>;
|
|
8
8
|
delete(scheduledTemplateId: number): IServiceCall<void>;
|
|
9
9
|
filesPost(scheduledTemplatesId: number, file: File): IServiceCall<IFile>;
|
|
10
10
|
filesPut(templateId: number, fileId: number, isDummy: boolean): IServiceCall<void>;
|
|
@@ -7,8 +7,8 @@ export default class ScheduledTemplates extends Extension {
|
|
|
7
7
|
post(id) {
|
|
8
8
|
return this.call(null, { id }, HttpMethod.PostJson, SessionRequirement.authenticated);
|
|
9
9
|
}
|
|
10
|
-
put(scheduledTemplateId, serviceType, message, link, publishDate, deal, isDraft, isMediaLocked, isMessageLocked, isPreApproved, lockedPublishDateStart = null, lockedPublishDateEnd = null) {
|
|
11
|
-
return this.call(scheduledTemplateId.toString(10), { serviceTypeId: serviceType, message, link, publishDate, deal, isDraft, isMediaLocked, isMessageLocked, isPreApproved, lockedPublishDateStart, lockedPublishDateEnd }, HttpMethod.PutJson, SessionRequirement.authenticated);
|
|
10
|
+
put(scheduledTemplateId, serviceType, message, link, publishDate, deal, isDraft, isMediaLocked, isMessageLocked, isPreApproved, lockedPublishDateStart = null, lockedPublishDateEnd = null, contentGroupId) {
|
|
11
|
+
return this.call(scheduledTemplateId.toString(10), { serviceTypeId: serviceType, message, link, publishDate, deal, isDraft, isMediaLocked, isMessageLocked, isPreApproved, lockedPublishDateStart, lockedPublishDateEnd, contentGroupId }, HttpMethod.PutJson, SessionRequirement.authenticated);
|
|
12
12
|
}
|
|
13
13
|
delete(scheduledTemplateId) {
|
|
14
14
|
return this.call(scheduledTemplateId.toString(10), null, HttpMethod.Delete, SessionRequirement.authenticated);
|
|
@@ -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;AAGlG,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,mBAA2B,EAAE,WAAmC,EAAE,OAAgB,EAAE,IAAoB,EAAE,WAAkB,EAAE,IAAiD,EAAE,OAAiB,EAAE,aAAuB,EAAE,eAAyB,EAAE,aAAuB,EAAE,yBAAsC,IAAI,EAAE,uBAAoC,IAAI;
|
|
1
|
+
{"version":3,"file":"scheduledTemplates.js","sourceRoot":"","sources":["../../src/extensions/scheduledTemplates.ts"],"names":[],"mappings":"AAAA,OAAO,E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,CAAA"}
|
|
@@ -3,6 +3,7 @@ import type { IPublicUser } from "../index";
|
|
|
3
3
|
export default class ServiceConnections extends Extension {
|
|
4
4
|
protected extensionName: string;
|
|
5
5
|
get(): IServiceCall<IPrivateServiceConnection[]>;
|
|
6
|
+
errorsGet(pageIndex: number, pageSize: number): IServiceCall<IServiceConnectionLogEntry[]>;
|
|
6
7
|
}
|
|
7
8
|
export interface IService {
|
|
8
9
|
ExternalId: string;
|
|
@@ -32,6 +33,22 @@ export interface IServiceConnectionIdentity {
|
|
|
32
33
|
FailedConnections: number;
|
|
33
34
|
ActiveConnections: number;
|
|
34
35
|
}
|
|
36
|
+
export interface IServiceConnectionLogEntry {
|
|
37
|
+
ModifiedOn: string;
|
|
38
|
+
OrganizationId: number;
|
|
39
|
+
OrganizationName: string;
|
|
40
|
+
LocationId: number;
|
|
41
|
+
LocationName: string;
|
|
42
|
+
UserId: string;
|
|
43
|
+
UserName: string;
|
|
44
|
+
UserEmailAddress: string;
|
|
45
|
+
Permissions: string[];
|
|
46
|
+
Error: IServiceConnectionError;
|
|
47
|
+
}
|
|
48
|
+
export interface IServiceConnectionError {
|
|
49
|
+
Message: string;
|
|
50
|
+
Stacktrace: string;
|
|
51
|
+
}
|
|
35
52
|
export declare enum ServiceConnectionType {
|
|
36
53
|
facebook = 1,
|
|
37
54
|
instagram = 2
|
|
@@ -4,6 +4,9 @@ export default class ServiceConnections extends Extension {
|
|
|
4
4
|
get() {
|
|
5
5
|
return this.call(null, null, HttpMethod.Get, SessionRequirement.authenticated);
|
|
6
6
|
}
|
|
7
|
+
errorsGet(pageIndex, pageSize) {
|
|
8
|
+
return this.call("Errors", { pageIndex, pageSize }, HttpMethod.Get, SessionRequirement.authenticated);
|
|
9
|
+
}
|
|
7
10
|
}
|
|
8
11
|
export var ServiceConnectionType;
|
|
9
12
|
(function (ServiceConnectionType) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serviceConnections.js","sourceRoot":"","sources":["../../src/extensions/serviceConnections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAgB,kBAAkB,EAAC,MAAM,4BAA4B,CAAA;AAGlG,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,SAAS;IAC9C,aAAa,GAAW,oBAAoB,CAAA;IAE/C,GAAG;QACT,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,CAAC,GAAG,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAA;IAC/E,CAAC;CACD;
|
|
1
|
+
{"version":3,"file":"serviceConnections.js","sourceRoot":"","sources":["../../src/extensions/serviceConnections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAgB,kBAAkB,EAAC,MAAM,4BAA4B,CAAA;AAGlG,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,SAAS;IAC9C,aAAa,GAAW,oBAAoB,CAAA;IAE/C,GAAG;QACT,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,CAAC,GAAG,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAA;IAC/E,CAAC;IAEM,SAAS,CAAC,SAAiB,EAAE,QAAgB;QACnD,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAC,SAAS,EAAE,QAAQ,EAAC,EAAE,UAAU,CAAC,GAAG,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAA;IACpG,CAAC;CACD;AAqDD,MAAM,CAAN,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAChC,yEAAY,CAAA;IACZ,2EAAa,CAAA;AACd,CAAC,EAHW,qBAAqB,KAArB,qBAAqB,QAGhC;AAED,SAAS,CAAC,GAAG,CAAC,kBAAkB,EAAE,oBAAoB,CAAC,CAAA"}
|
|
@@ -3,7 +3,7 @@ import type { IDeal, IFile, IProduct, ITemplate, ServiceConnectionType } from ".
|
|
|
3
3
|
export default class TemplateCategories extends Extension {
|
|
4
4
|
protected extensionName: string;
|
|
5
5
|
delete(templateCategoryId: number): IServiceCall<void>;
|
|
6
|
-
put(templateCategoryId: number, name: string, description: string): IServiceCall<void>;
|
|
6
|
+
put(templateCategoryId: number, name: string, description: string, contentGroupId?: number): IServiceCall<void>;
|
|
7
7
|
filesDelete(templateCategoryId: number, fileId: number): IServiceCall<void>;
|
|
8
8
|
filesPost(templateCategoryId: number, file: File): IServiceCall<IFile>;
|
|
9
9
|
templatesPost(templateCategoryId: number, serviceType: ServiceConnectionType | null, message: string, link: string | null, isDraft: boolean, deal: IDeal<IProduct<null>> | null): IServiceCall<ITemplate>;
|
|
@@ -4,8 +4,8 @@ export default class TemplateCategories extends Extension {
|
|
|
4
4
|
delete(templateCategoryId) {
|
|
5
5
|
return this.call(templateCategoryId.toString(10), null, HttpMethod.Delete, SessionRequirement.authenticated);
|
|
6
6
|
}
|
|
7
|
-
put(templateCategoryId, name, description) {
|
|
8
|
-
return this.call(templateCategoryId.toString(10), { name, description }, HttpMethod.PutJson, SessionRequirement.authenticated);
|
|
7
|
+
put(templateCategoryId, name, description, contentGroupId) {
|
|
8
|
+
return this.call(templateCategoryId.toString(10), { name, description, contentGroupId }, HttpMethod.PutJson, SessionRequirement.authenticated);
|
|
9
9
|
}
|
|
10
10
|
filesDelete(templateCategoryId, fileId) {
|
|
11
11
|
return this.call(templateCategoryId.toString(10) + "/Files/" + fileId.toString(10), null, HttpMethod.Delete, SessionRequirement.authenticated);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templatesCategories.js","sourceRoot":"","sources":["../../src/extensions/templatesCategories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAgB,kBAAkB,EAAC,MAAM,4BAA4B,CAAA;AAGlG,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,SAAS;IAC9C,aAAa,GAAW,oBAAoB,CAAA;IAE/C,MAAM,CAAC,kBAA0B;QACvC,OAAO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C,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAG,QAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,UAAU,CAAC,IAAI,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAA;IACxH,CAAC;IAEM,aAAa,CAAC,kBAA0B,EAAE,WAAyC,EAAE,OAAe,EAAE,IAAmB,EAAE,OAAgB,EAAE,IAAkC;QACrL,OAAO,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAG,YAAY,EAAE,EAAC,aAAa,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC,EAAE,UAAU,CAAC,QAAQ,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAA;IACpL,CAAC;CACD;AAWD,SAAS,CAAC,GAAG,CAAC,kBAAkB,EAAE,oBAAoB,CAAC,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -29,11 +29,11 @@ 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 { IDatedPostData, IDeleted, IPost, IPostWithStatistics, IPostWithLocation, IPostFromScheduledTemplate, IPostData, IPostingFailure, IPostingSuccess, IPostError, IServicePostError, IPostLocation } from "./extensions/posts";
|
|
32
|
+
export type { IDatedPostData, IDeleted, IPost, IPostWithStatistics, IPostWithStatisticsAndDeal, IPostWithLocation, 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";
|
|
36
|
-
export type { IPrivateServiceConnection, IPublicServiceConnection, IService, IServiceConnection, IServiceConnectionIdentity } from "./extensions/serviceConnections";
|
|
36
|
+
export type { IPrivateServiceConnection, IPublicServiceConnection, IService, IServiceConnection, IServiceConnectionIdentity, IServiceConnectionLogEntry, IServiceConnectionError } from "./extensions/serviceConnections";
|
|
37
37
|
export type { ISecureCookie, ISecureCookieWithSession } from "./extensions/sessions";
|
|
38
38
|
export type { ITemplate } from "./extensions/templates";
|
|
39
39
|
export type { ITemplateCategory } from "./extensions/templatesCategories";
|
package/package.json
CHANGED
|
@@ -4,8 +4,8 @@ import type {IFile} from "../index"
|
|
|
4
4
|
export default class Filters extends Extension {
|
|
5
5
|
protected extensionName: string = "Filters"
|
|
6
6
|
|
|
7
|
-
public put(filterId: number, name: string, isPublished: boolean, data: object, file?: File): IServiceCall<void> {
|
|
8
|
-
return this.call(filterId.toString(10), {name, isPublished, data, file}, HttpMethod.Put, SessionRequirement.authenticated)
|
|
7
|
+
public put(filterId: number, name: string, isPublished: boolean, data: object, file?: File, contentGroupId?: number): IServiceCall<void> {
|
|
8
|
+
return this.call(filterId.toString(10), {name, isPublished, data, file, contentGroupId}, HttpMethod.Put, SessionRequirement.authenticated)
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
public delete(filterId: number): IServiceCall<void> {
|
|
@@ -6,7 +6,7 @@ import type {
|
|
|
6
6
|
ILocation,
|
|
7
7
|
ILocationWithServices,
|
|
8
8
|
IPost,
|
|
9
|
-
|
|
9
|
+
IPostWithStatisticsAndDeal,
|
|
10
10
|
IPrivateContentGroup,
|
|
11
11
|
IPublicUser,
|
|
12
12
|
IScheduledTemplate,
|
|
@@ -21,12 +21,12 @@ export default class Organizations extends Extension {
|
|
|
21
21
|
return this.call(null, null, HttpMethod.Get, SessionRequirement.authenticated)
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
public post(name: string, key: string, featureFlags: IOrganizationFeatures): IServiceCall<IOrganization> {
|
|
25
|
-
return this.call(null, {name, key, featureFlags}, HttpMethod.PostJson, SessionRequirement.authenticated)
|
|
24
|
+
public post(name: string, key: string, featureFlags: IOrganizationFeatures, isActive?: boolean): IServiceCall<IOrganization> {
|
|
25
|
+
return this.call(null, {name, key, featureFlags, isActive}, HttpMethod.PostJson, SessionRequirement.authenticated)
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
public put(organizationId: number, isDealMessagingPrioritized: boolean, featureFlags: IOrganizationFeatures | undefined, dealReplies: IDealReplies, dealFooter: string | null, dealVariantFooter: string | null, dealOutOfStockHeader: string | null, dealExpiredHeader: string | null, dealLiveFooter: string | null, dealAlcoholFooter: string | null): IServiceCall<void> {
|
|
29
|
-
return this.call(organizationId.toString(10), {isDealMessagingPrioritized, featureFlags, dealReplies, dealFooter, dealVariantFooter, dealOutOfStockHeader, dealExpiredHeader, dealLiveFooter, dealAlcoholFooter}, HttpMethod.PutJson, SessionRequirement.authenticated)
|
|
28
|
+
public put(organizationId: number, isDealMessagingPrioritized: boolean, featureFlags: IOrganizationFeatures | undefined, dealReplies: IDealReplies, dealFooter: string | null, dealVariantFooter: string | null, dealOutOfStockHeader: string | null, dealExpiredHeader: string | null, dealLiveFooter: string | null, dealAlcoholFooter: string | null, isActive?: boolean): IServiceCall<void> {
|
|
29
|
+
return this.call(organizationId.toString(10), {isDealMessagingPrioritized, featureFlags, dealReplies, dealFooter, dealVariantFooter, dealOutOfStockHeader, dealExpiredHeader, dealLiveFooter, dealAlcoholFooter, isActive}, HttpMethod.PutJson, SessionRequirement.authenticated)
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
public patch(organizationId: number, locationSignupToken: "refresh"): IServiceCall<void> {
|
|
@@ -73,7 +73,7 @@ export default class Organizations extends Extension {
|
|
|
73
73
|
return this.call(organizationId.toString(10) + "/Posts", null, HttpMethod.Get, SessionRequirement.authenticated)
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
public postsStatisticsGet(organizationId: number, from: Date, to: Date, q?: string, serviceType?: ServiceType, locationId?: number, byPublishDate: boolean = false, isDeal?: boolean, pageIndex: number = 0, pageSize: number = 20): IServiceCall<
|
|
76
|
+
public postsStatisticsGet(organizationId: number, from: Date, to: Date, q?: string, serviceType?: ServiceType, locationId?: number, byPublishDate: boolean = false, isDeal?: boolean, pageIndex: number = 0, pageSize: number = 20): IServiceCall<IPostWithStatisticsAndDeal[]> {
|
|
77
77
|
return this.call(organizationId.toString(10) + "/Posts/Statistics", {currentFrom: from, currentTo: to, q, serviceType, locationId, byPublishDate, isDeal, pageIndex, pageSize}, HttpMethod.Get, SessionRequirement.authenticated)
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -85,7 +85,7 @@ export default class Organizations extends Extension {
|
|
|
85
85
|
return this.call(organizationId.toString(10) + "/Posts/Statistics/Summary", {currentFrom, currentTo, previousFrom, previousTo, q, serviceType, locationId, isDeal}, HttpMethod.Get, SessionRequirement.authenticated)
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
public postsStatisticsRankingGet(organizationId: number, from: Date, to: Date, q?: string, serviceType?: ServiceType, isDeal?: boolean, pageIndex: number = 0, pageSize: number = 20): IServiceCall<
|
|
88
|
+
public postsStatisticsRankingGet(organizationId: number, from: Date, to: Date, q?: string, serviceType?: ServiceType, isDeal?: boolean, pageIndex: number = 0, pageSize: number = 20): IServiceCall<IPostWithStatisticsAndDeal[]> {
|
|
89
89
|
return this.call(organizationId.toString(10) + "/Posts/Statistics/Ranking", {from, to, q, serviceType, isDeal, pageIndex, pageSize}, HttpMethod.Get, SessionRequirement.authenticated)
|
|
90
90
|
}
|
|
91
91
|
|
|
@@ -149,6 +149,7 @@ export interface IOrganization {
|
|
|
149
149
|
|
|
150
150
|
Locations: number
|
|
151
151
|
LocationsWithDeals: number
|
|
152
|
+
IsActive: boolean
|
|
152
153
|
}
|
|
153
154
|
|
|
154
155
|
export interface IOrganizationFeatures {
|
package/src/extensions/posts.ts
CHANGED
|
@@ -12,8 +12,8 @@ export default class ScheduledTemplates extends Extension {
|
|
|
12
12
|
return this.call(null, {id}, HttpMethod.PostJson, SessionRequirement.authenticated)
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
public put(scheduledTemplateId: number, serviceType?: ServiceConnectionType, message?: string, link?: string | null, publishDate?: Date, deal?: IDatedDeal<IProduct<number | null>> | null, isDraft?: boolean, isMediaLocked?: boolean, isMessageLocked?: boolean, isPreApproved?: boolean, lockedPublishDateStart: Date | null = null, lockedPublishDateEnd: Date | null = null): IServiceCall<void> {
|
|
16
|
-
return this.call(scheduledTemplateId.toString(10), {serviceTypeId: serviceType, message, link, publishDate, deal, isDraft, isMediaLocked, isMessageLocked, isPreApproved, lockedPublishDateStart, lockedPublishDateEnd}, HttpMethod.PutJson, SessionRequirement.authenticated)
|
|
15
|
+
public put(scheduledTemplateId: number, serviceType?: ServiceConnectionType, message?: string, link?: string | null, publishDate?: Date, deal?: IDatedDeal<IProduct<number | null>> | null, isDraft?: boolean, isMediaLocked?: boolean, isMessageLocked?: boolean, isPreApproved?: boolean, lockedPublishDateStart: Date | null = null, lockedPublishDateEnd: Date | null = null, contentGroupId?: number): IServiceCall<void> {
|
|
16
|
+
return this.call(scheduledTemplateId.toString(10), {serviceTypeId: serviceType, message, link, publishDate, deal, isDraft, isMediaLocked, isMessageLocked, isPreApproved, lockedPublishDateStart, lockedPublishDateEnd, contentGroupId}, HttpMethod.PutJson, SessionRequirement.authenticated)
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
public delete(scheduledTemplateId: number): IServiceCall<void> {
|
|
@@ -7,6 +7,10 @@ export default class ServiceConnections extends Extension {
|
|
|
7
7
|
public get(): IServiceCall<IPrivateServiceConnection[]> {
|
|
8
8
|
return this.call(null, null, HttpMethod.Get, SessionRequirement.authenticated)
|
|
9
9
|
}
|
|
10
|
+
|
|
11
|
+
public errorsGet(pageIndex: number, pageSize: number): IServiceCall<IServiceConnectionLogEntry[]> {
|
|
12
|
+
return this.call("Errors", {pageIndex, pageSize}, HttpMethod.Get, SessionRequirement.authenticated)
|
|
13
|
+
}
|
|
10
14
|
}
|
|
11
15
|
|
|
12
16
|
export interface IService {
|
|
@@ -42,6 +46,24 @@ export interface IServiceConnectionIdentity {
|
|
|
42
46
|
ActiveConnections: number
|
|
43
47
|
}
|
|
44
48
|
|
|
49
|
+
export interface IServiceConnectionLogEntry {
|
|
50
|
+
ModifiedOn: string
|
|
51
|
+
OrganizationId: number
|
|
52
|
+
OrganizationName: string
|
|
53
|
+
LocationId: number
|
|
54
|
+
LocationName: string
|
|
55
|
+
UserId: string
|
|
56
|
+
UserName: string
|
|
57
|
+
UserEmailAddress: string
|
|
58
|
+
Permissions: string[]
|
|
59
|
+
Error: IServiceConnectionError
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface IServiceConnectionError {
|
|
63
|
+
Message: string
|
|
64
|
+
Stacktrace: string
|
|
65
|
+
}
|
|
66
|
+
|
|
45
67
|
export enum ServiceConnectionType {
|
|
46
68
|
facebook = 1,
|
|
47
69
|
instagram = 2
|
|
@@ -8,8 +8,8 @@ export default class TemplateCategories extends Extension {
|
|
|
8
8
|
return this.call(templateCategoryId.toString(10), null, HttpMethod.Delete, SessionRequirement.authenticated)
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
public put(templateCategoryId: number, name: string, description: string): IServiceCall<void> {
|
|
12
|
-
return this.call(templateCategoryId.toString(10), {name, description}, HttpMethod.PutJson, SessionRequirement.authenticated)
|
|
11
|
+
public put(templateCategoryId: number, name: string, description: string, contentGroupId?: number): IServiceCall<void> {
|
|
12
|
+
return this.call(templateCategoryId.toString(10), {name, description, contentGroupId}, HttpMethod.PutJson, SessionRequirement.authenticated)
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
public filesDelete(templateCategoryId: number, fileId: number): IServiceCall<void> {
|
package/src/index.ts
CHANGED
|
@@ -34,11 +34,11 @@ 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 {IDatedPostData, IDeleted, IPost, IPostWithStatistics, IPostWithLocation, IPostFromScheduledTemplate, IPostData, IPostingFailure, IPostingSuccess, IPostError, IServicePostError, IPostLocation} from "./extensions/posts"
|
|
37
|
+
export type {IDatedPostData, IDeleted, IPost, IPostWithStatistics, IPostWithStatisticsAndDeal, IPostWithLocation, 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"
|
|
41
|
-
export type {IPrivateServiceConnection, IPublicServiceConnection, IService, IServiceConnection, IServiceConnectionIdentity} from "./extensions/serviceConnections"
|
|
41
|
+
export type {IPrivateServiceConnection, IPublicServiceConnection, IService, IServiceConnection, IServiceConnectionIdentity, IServiceConnectionLogEntry, IServiceConnectionError} from "./extensions/serviceConnections"
|
|
42
42
|
export type {ISecureCookie, ISecureCookieWithSession} from "./extensions/sessions"
|
|
43
43
|
export type {ITemplate} from "./extensions/templates"
|
|
44
44
|
export type {ITemplateCategory} from "./extensions/templatesCategories"
|