@chaosinsight/postoffice-portalclient 2.0.10 → 2.0.12
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/posts.d.ts +11 -0
- package/dist/extensions/posts.js +8 -0
- package/dist/extensions/posts.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/posts.ts +13 -0
- package/src/index.ts +2 -2
|
@@ -91,6 +91,10 @@ export interface IPostLocation {
|
|
|
91
91
|
export interface IPostTypeData {
|
|
92
92
|
Id: PostType;
|
|
93
93
|
ServiceTypeId?: ServiceConnectionType;
|
|
94
|
+
Limitations: IPostLimitations | null;
|
|
95
|
+
}
|
|
96
|
+
export interface IPostLimitations {
|
|
97
|
+
Age: PostAgeLimitation | null;
|
|
94
98
|
}
|
|
95
99
|
export interface IPostTypeDataDeal extends IPostTypeData {
|
|
96
100
|
CheckoutType: PostCheckoutType;
|
|
@@ -165,6 +169,13 @@ export declare enum PostPublishState {
|
|
|
165
169
|
failed = 500000000,
|
|
166
170
|
published = 4294967295
|
|
167
171
|
}
|
|
172
|
+
export declare enum PostAgeLimitation {
|
|
173
|
+
above13 = 13,
|
|
174
|
+
above15 = 15,
|
|
175
|
+
above18 = 18,
|
|
176
|
+
above21 = 21,
|
|
177
|
+
above25 = 25
|
|
178
|
+
}
|
|
168
179
|
declare module "@chaosinsight/portalclient" {
|
|
169
180
|
interface ExtensionHandler {
|
|
170
181
|
posts: Posts;
|
package/dist/extensions/posts.js
CHANGED
|
@@ -93,5 +93,13 @@ export var PostPublishState;
|
|
|
93
93
|
PostPublishState[PostPublishState["failed"] = 500000000] = "failed";
|
|
94
94
|
PostPublishState[PostPublishState["published"] = 4294967295] = "published";
|
|
95
95
|
})(PostPublishState || (PostPublishState = {}));
|
|
96
|
+
export var PostAgeLimitation;
|
|
97
|
+
(function (PostAgeLimitation) {
|
|
98
|
+
PostAgeLimitation[PostAgeLimitation["above13"] = 13] = "above13";
|
|
99
|
+
PostAgeLimitation[PostAgeLimitation["above15"] = 15] = "above15";
|
|
100
|
+
PostAgeLimitation[PostAgeLimitation["above18"] = 18] = "above18";
|
|
101
|
+
PostAgeLimitation[PostAgeLimitation["above21"] = 21] = "above21";
|
|
102
|
+
PostAgeLimitation[PostAgeLimitation["above25"] = 25] = "above25";
|
|
103
|
+
})(PostAgeLimitation || (PostAgeLimitation = {}));
|
|
96
104
|
Extension.add(Posts, "posts");
|
|
97
105
|
//# sourceMappingURL=posts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"posts.js","sourceRoot":"","sources":["../../src/extensions/posts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAe,MAAM,4BAA4B,CAAA;AAGxF,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,CAAC,CAAA;IAC5D,CAAC;IAEM,IAAI,CAAC,MAAc;QACzB,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,EAAC,EAAE,EAAE,MAAM,EAAC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAA;IACtD,CAAC;IAEM,GAAG,CAAC,MAAc,EAAE,IAA+B,EAAE,OAAe,EAAE,IAAmB,EAAE,WAAiB,EAAE,IAAoD;QACxK,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAC,EAAE,UAAU,CAAC,GAAG,CAAC,CAAA;IAChG,CAAC;IAEM,KAAK,CAAC,MAAc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,QAAQ,QASnB;AAED,MAAM,CAAN,IAAY,SAMX;AAND,WAAY,SAAS;IACpB,mDAAa,CAAA;IACb,mDAAa,CAAA;IACb,+CAAW,CAAA;IACX,yDAAgB,CAAA;IAChB,6CAAU,CAAA;AACX,CAAC,EANW,SAAS,KAAT,SAAS,QAMpB;AAED,MAAM,CAAN,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC3B,mEAAc,CAAA;IACd,+DAAY,CAAA;IACZ,qEAAkB,CAAA;IAClB,iEAAgB,CAAA;IAChB,yEAAoB,CAAA;AACrB,CAAC,EANW,gBAAgB,KAAhB,gBAAgB,QAM3B;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,MAAM,CAAN,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC3B,6DAAW,CAAA;IACX,mEAAc,CAAA;IACd,+DAAY,CAAA;IACZ,uEAAgB,CAAA;IAChB,mEAAoB,CAAA;IACpB,0EAAyB,CAAA;AAC1B,CAAC,EAPW,gBAAgB,KAAhB,gBAAgB,QAO3B;AAED,MAAM,CAAN,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC5B,gEAAY,CAAA;IACZ,gEAAY,CAAA;IACZ,gEAAY,CAAA;IACZ,gEAAY,CAAA;IACZ,gEAAY,CAAA;AACb,CAAC,EANW,iBAAiB,KAAjB,iBAAiB,QAM5B;AAED,SAAS,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export { DealState } from "./extensions/deals";
|
|
|
26
26
|
export { FilterType } from "./extensions/filters";
|
|
27
27
|
export { ECommerceIntegrationType } from "./extensions/locations";
|
|
28
28
|
export { InvitationType, OrganizationRole, ServiceType, OrganizationType, LocationOrganizationRelationType } from "./extensions/organizations";
|
|
29
|
-
export { DeleteReason, PostCheckoutType, PostError, PostState, PostType, PostPublishState } from "./extensions/posts";
|
|
29
|
+
export { DeleteReason, PostAgeLimitation, PostCheckoutType, PostError, PostState, PostType, PostPublishState } from "./extensions/posts";
|
|
30
30
|
export { LocationReportPeriod, LocationReportComparePeriod, LocationReportType, OrganizationReportPeriod, OrganizationReportType } from "./extensions/reportSubscription";
|
|
31
31
|
export { ServiceConnectionType } from "./extensions/serviceConnections";
|
|
32
32
|
export { UserRole } from "./extensions/users";
|
|
@@ -40,7 +40,7 @@ export type { ILocation, ILocationInvitation, ILocationWithServices, ILocationDe
|
|
|
40
40
|
export type { IOrder, IOrderLine } from "./extensions/orders";
|
|
41
41
|
export type { IDatedPostStatistics, IOrganization, IOrganizationInvitation, IOrganizationMembership, IOrganizationPermission, IPostStatistics, IDetailedPostStatistics, ISummaryStatistics, ISummeryLocationStatistics, ISummeryPostStatistics, IFeatureFlags, ILocationCreationData, IOrganizationReviewConfiguration, IOrganizationNotificationConfiguration, IOrganizationDealsConfiguration, IOrganizationStatisticsConfiguration, IExternalOrganization } from "./extensions/organizations";
|
|
42
42
|
export type { IPasskey, IPasskeyAssertion, IPasskeyCredentials, IPasskeyOptions } from "./extensions/passkeys";
|
|
43
|
-
export type { IDated, IDeleted, IPost, IPostWithStatisticsAndDeal, IPostWithStatisticsAndLocation, IPostFromTemplate, IPostData, IPostingFailure, IPostingSuccess, IPostError, IServicePostError, IPostLocation, IPostTypeData, IPostTypeDataDeal, IPostTypeDataFacebookCarousel, IPostTypeDataFacebookLive, IPostTypeDataFacebookReel, ICarouselItem } from "./extensions/posts";
|
|
43
|
+
export type { IDated, IDeleted, IPost, IPostWithStatisticsAndDeal, IPostWithStatisticsAndLocation, IPostFromTemplate, IPostData, IPostLimitations, IPostingFailure, IPostingSuccess, IPostError, IServicePostError, IPostLocation, IPostTypeData, IPostTypeDataDeal, IPostTypeDataFacebookCarousel, IPostTypeDataFacebookLive, IPostTypeDataFacebookReel, ICarouselItem } from "./extensions/posts";
|
|
44
44
|
export type { IPublicDeal } from "./extensions/publicDeals";
|
|
45
45
|
export type { IPublicLocation } from "./extensions/publicLocations";
|
|
46
46
|
export type { ILocationReportSubscription, IOrganizationReportFile, IOrganizationReportSubscription, IReportSubscription } from "./extensions/reportSubscription";
|
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ export { DealState } from "./extensions/deals";
|
|
|
26
26
|
export { FilterType } from "./extensions/filters";
|
|
27
27
|
export { ECommerceIntegrationType } from "./extensions/locations";
|
|
28
28
|
export { InvitationType, OrganizationRole, ServiceType, OrganizationType, LocationOrganizationRelationType } from "./extensions/organizations";
|
|
29
|
-
export { DeleteReason, PostCheckoutType, PostError, PostState, PostType, PostPublishState } from "./extensions/posts";
|
|
29
|
+
export { DeleteReason, PostAgeLimitation, PostCheckoutType, PostError, PostState, PostType, PostPublishState } from "./extensions/posts";
|
|
30
30
|
export { LocationReportPeriod, LocationReportComparePeriod, LocationReportType, OrganizationReportPeriod, OrganizationReportType } from "./extensions/reportSubscription";
|
|
31
31
|
export { ServiceConnectionType } from "./extensions/serviceConnections";
|
|
32
32
|
export { UserRole } from "./extensions/users";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAA;AAC1B,OAAO,4BAA4B,CAAA;AACnC,OAAO,oBAAoB,CAAA;AAC3B,OAAO,sBAAsB,CAAA;AAC7B,OAAO,yBAAyB,CAAA;AAChC,OAAO,uBAAuB,CAAA;AAC9B,OAAO,wBAAwB,CAAA;AAC/B,OAAO,wBAAwB,CAAA;AAC/B,OAAO,qBAAqB,CAAA;AAC5B,OAAO,4BAA4B,CAAA;AACnC,OAAO,uBAAuB,CAAA;AAC9B,OAAO,wBAAwB,CAAA;AAC/B,OAAO,oBAAoB,CAAA;AAC3B,OAAO,0BAA0B,CAAA;A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AACxC,OAAO,iCAAiC,CAAA;AACxC,OAAO,uBAAuB,CAAA;AAC9B,OAAO,wBAAwB,CAAA;AAC/B,OAAO,kCAAkC,CAAA;AACzC,OAAO,qBAAqB,CAAA;AAC5B,OAAO,oBAAoB,CAAA;AAE3B,OAAO,EAAC,OAAO,IAAI,mBAAmB,EAAC,MAAM,uBAAuB,CAAA;AACpE,OAAO,EAAC,OAAO,IAAI,wBAAwB,EAAC,MAAM,mCAAmC,CAAA;AAErF,OAAO,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAA;AAC5C,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAA;AAC/C,OAAO,EAAC,wBAAwB,EAAC,MAAM,wBAAwB,CAAA;AAC/D,OAAO,EAAC,cAAc,EAAE,gBAAgB,EAAE,WAAW,EAAE,gBAAgB,EAAE,gCAAgC,EAAC,MAAM,4BAA4B,CAAA;AAC5I,OAAO,EAAC,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,gBAAgB,EAAC,MAAM,oBAAoB,CAAA;AACtI,OAAO,EAAC,oBAAoB,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,sBAAsB,EAAC,MAAM,iCAAiC,CAAA;AACvK,OAAO,EAAC,qBAAqB,EAAC,MAAM,iCAAiC,CAAA;AACrE,OAAO,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAAC,UAAU,EAAE,UAAU,EAAE,WAAW,EAAC,MAAM,SAAS,CAAA"}
|
package/package.json
CHANGED
package/src/extensions/posts.ts
CHANGED
|
@@ -148,6 +148,11 @@ export interface IPostLocation {
|
|
|
148
148
|
export interface IPostTypeData {
|
|
149
149
|
Id: PostType
|
|
150
150
|
ServiceTypeId?: ServiceConnectionType
|
|
151
|
+
Limitations: IPostLimitations | null
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export interface IPostLimitations {
|
|
155
|
+
Age: PostAgeLimitation | null
|
|
151
156
|
}
|
|
152
157
|
|
|
153
158
|
export interface IPostTypeDataDeal extends IPostTypeData {
|
|
@@ -234,6 +239,14 @@ export enum PostPublishState {
|
|
|
234
239
|
published = 4_294_967_295
|
|
235
240
|
}
|
|
236
241
|
|
|
242
|
+
export enum PostAgeLimitation {
|
|
243
|
+
above13 = 13,
|
|
244
|
+
above15 = 15,
|
|
245
|
+
above18 = 18,
|
|
246
|
+
above21 = 21,
|
|
247
|
+
above25 = 25
|
|
248
|
+
}
|
|
249
|
+
|
|
237
250
|
Extension.add(Posts, "posts")
|
|
238
251
|
|
|
239
252
|
declare module "@chaosinsight/portalclient" {
|
package/src/index.ts
CHANGED
|
@@ -28,7 +28,7 @@ export {DealState} from "./extensions/deals"
|
|
|
28
28
|
export {FilterType} from "./extensions/filters"
|
|
29
29
|
export {ECommerceIntegrationType} from "./extensions/locations"
|
|
30
30
|
export {InvitationType, OrganizationRole, ServiceType, OrganizationType, LocationOrganizationRelationType} from "./extensions/organizations"
|
|
31
|
-
export {DeleteReason, PostCheckoutType, PostError, PostState, PostType, PostPublishState} from "./extensions/posts"
|
|
31
|
+
export {DeleteReason, PostAgeLimitation, PostCheckoutType, PostError, PostState, PostType, PostPublishState} from "./extensions/posts"
|
|
32
32
|
export {LocationReportPeriod, LocationReportComparePeriod, LocationReportType, OrganizationReportPeriod, OrganizationReportType} from "./extensions/reportSubscription"
|
|
33
33
|
export {ServiceConnectionType} from "./extensions/serviceConnections"
|
|
34
34
|
export {UserRole} from "./extensions/users"
|
|
@@ -43,7 +43,7 @@ export type {ILocation, ILocationInvitation, ILocationWithServices, ILocationDea
|
|
|
43
43
|
export type {IOrder, IOrderLine} from "./extensions/orders"
|
|
44
44
|
export type {IDatedPostStatistics, IOrganization, IOrganizationInvitation, IOrganizationMembership, IOrganizationPermission, IPostStatistics, IDetailedPostStatistics, ISummaryStatistics, ISummeryLocationStatistics, ISummeryPostStatistics, IFeatureFlags, ILocationCreationData, IOrganizationReviewConfiguration, IOrganizationNotificationConfiguration, IOrganizationDealsConfiguration, IOrganizationStatisticsConfiguration, IExternalOrganization} from "./extensions/organizations"
|
|
45
45
|
export type {IPasskey, IPasskeyAssertion, IPasskeyCredentials, IPasskeyOptions} from "./extensions/passkeys"
|
|
46
|
-
export type {IDated, IDeleted, IPost, IPostWithStatisticsAndDeal, IPostWithStatisticsAndLocation, IPostFromTemplate, IPostData, IPostingFailure, IPostingSuccess, IPostError, IServicePostError, IPostLocation, IPostTypeData, IPostTypeDataDeal, IPostTypeDataFacebookCarousel, IPostTypeDataFacebookLive, IPostTypeDataFacebookReel, ICarouselItem} from "./extensions/posts"
|
|
46
|
+
export type {IDated, IDeleted, IPost, IPostWithStatisticsAndDeal, IPostWithStatisticsAndLocation, IPostFromTemplate, IPostData, IPostLimitations, IPostingFailure, IPostingSuccess, IPostError, IServicePostError, IPostLocation, IPostTypeData, IPostTypeDataDeal, IPostTypeDataFacebookCarousel, IPostTypeDataFacebookLive, IPostTypeDataFacebookReel, ICarouselItem} from "./extensions/posts"
|
|
47
47
|
export type {IPublicDeal} from "./extensions/publicDeals"
|
|
48
48
|
export type {IPublicLocation} from "./extensions/publicLocations"
|
|
49
49
|
export type {ILocationReportSubscription, IOrganizationReportFile, IOrganizationReportSubscription, IReportSubscription} from "./extensions/reportSubscription"
|