@wix/auto_sdk_blog_posts 1.0.152 → 1.0.153

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.
Files changed (37) hide show
  1. package/build/cjs/index.js +43 -38
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +409 -399
  4. package/build/cjs/index.typings.js +43 -38
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.d.ts +411 -401
  7. package/build/cjs/meta.js +43 -38
  8. package/build/cjs/meta.js.map +1 -1
  9. package/build/cjs/schemas.d.ts +2 -2
  10. package/build/es/index.mjs +43 -38
  11. package/build/es/index.mjs.map +1 -1
  12. package/build/es/index.typings.d.mts +409 -399
  13. package/build/es/index.typings.mjs +43 -38
  14. package/build/es/index.typings.mjs.map +1 -1
  15. package/build/es/meta.d.mts +411 -401
  16. package/build/es/meta.mjs +43 -38
  17. package/build/es/meta.mjs.map +1 -1
  18. package/build/es/schemas.d.mts +2 -2
  19. package/build/internal/cjs/index.js +43 -38
  20. package/build/internal/cjs/index.js.map +1 -1
  21. package/build/internal/cjs/index.typings.d.ts +409 -399
  22. package/build/internal/cjs/index.typings.js +43 -38
  23. package/build/internal/cjs/index.typings.js.map +1 -1
  24. package/build/internal/cjs/meta.d.ts +411 -401
  25. package/build/internal/cjs/meta.js +43 -38
  26. package/build/internal/cjs/meta.js.map +1 -1
  27. package/build/internal/cjs/schemas.d.ts +2 -2
  28. package/build/internal/es/index.mjs +43 -38
  29. package/build/internal/es/index.mjs.map +1 -1
  30. package/build/internal/es/index.typings.d.mts +409 -399
  31. package/build/internal/es/index.typings.mjs +43 -38
  32. package/build/internal/es/index.typings.mjs.map +1 -1
  33. package/build/internal/es/meta.d.mts +411 -401
  34. package/build/internal/es/meta.mjs +43 -38
  35. package/build/internal/es/meta.mjs.map +1 -1
  36. package/build/internal/es/schemas.d.mts +2 -2
  37. package/package.json +2 -2
@@ -2437,10 +2437,20 @@ declare enum SmartBlockDataType {
2437
2437
  /** Process steps with numbered/icon labels above a horizontal line. */
2438
2438
  PROCESS_STEPS = "PROCESS_STEPS",
2439
2439
  /** Statistics with bar visual elements. */
2440
- BAR_STATS = "BAR_STATS"
2440
+ BAR_STATS = "BAR_STATS",
2441
+ /** Timeline layout with numbered chips on a connecting line; cells alternate around the line. */
2442
+ TIMELINE = "TIMELINE",
2443
+ /** Timeline layout with plain dot indicators; no numbers or shapes; cells alternate around the line. */
2444
+ MINIMAL_TIMELINE = "MINIMAL_TIMELINE",
2445
+ /** Numbered pill-shaped labels (stadium chips) with text content; supports HORIZONTAL (pill on top) and VERTICAL (pill on left) orientations. */
2446
+ PILLS = "PILLS",
2447
+ /** Star rating display with stars and a numeric value per cell. */
2448
+ STAR_RATING = "STAR_RATING",
2449
+ /** Outlined boxes with decorative quote glyphs at the top-left and bottom-right corners. */
2450
+ QUOTE_BOXES = "QUOTE_BOXES"
2441
2451
  }
2442
2452
  /** @enumType */
2443
- type SmartBlockDataTypeWithLiterals = SmartBlockDataType | 'SOLID_BOXES' | 'NUMBERED_BOXES' | 'STATS' | 'CIRCLE_STATS' | 'SOLID_BOXES_ALTERNATING' | 'SOLID_JOINED_BOXES' | 'SIDE_LINE_TEXT' | 'TOP_LINE_TEXT' | 'OUTLINE_BOXES_WITH_TOP_CIRCLE' | 'BIG_BULLETS' | 'SMALL_BULLETS' | 'ARROW_BULLETS' | 'PROCESS_STEPS' | 'BAR_STATS';
2453
+ type SmartBlockDataTypeWithLiterals = SmartBlockDataType | 'SOLID_BOXES' | 'NUMBERED_BOXES' | 'STATS' | 'CIRCLE_STATS' | 'SOLID_BOXES_ALTERNATING' | 'SOLID_JOINED_BOXES' | 'SIDE_LINE_TEXT' | 'TOP_LINE_TEXT' | 'OUTLINE_BOXES_WITH_TOP_CIRCLE' | 'BIG_BULLETS' | 'SMALL_BULLETS' | 'ARROW_BULLETS' | 'PROCESS_STEPS' | 'BAR_STATS' | 'TIMELINE' | 'MINIMAL_TIMELINE' | 'PILLS' | 'STAR_RATING' | 'QUOTE_BOXES';
2444
2454
  /** Column size controlling how many cells appear per row. */
2445
2455
  declare enum ColumnSize {
2446
2456
  /** Up to 4 cells in a row. */
@@ -2754,290 +2764,6 @@ interface PostUnlikedInitiatorOneOf {
2754
2764
  */
2755
2765
  anonymousVisitorId?: string | null;
2756
2766
  }
2757
- interface GetTotalLikesPerMemberRequest {
2758
- /**
2759
- * Member ID.
2760
- * @format GUID
2761
- */
2762
- memberId?: string;
2763
- }
2764
- interface GetTotalLikesPerMemberResponse {
2765
- /** The total number of likes of the member. */
2766
- total?: number;
2767
- }
2768
- interface DomainEvent extends DomainEventBodyOneOf {
2769
- createdEvent?: EntityCreatedEvent;
2770
- updatedEvent?: EntityUpdatedEvent;
2771
- deletedEvent?: EntityDeletedEvent;
2772
- actionEvent?: ActionEvent;
2773
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
2774
- _id?: string;
2775
- /**
2776
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
2777
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
2778
- */
2779
- entityFqdn?: string;
2780
- /**
2781
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
2782
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
2783
- */
2784
- slug?: string;
2785
- /** ID of the entity associated with the event. */
2786
- entityId?: string;
2787
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
2788
- eventTime?: Date | null;
2789
- /**
2790
- * Whether the event was triggered as a result of a privacy regulation application
2791
- * (for example, GDPR).
2792
- */
2793
- triggeredByAnonymizeRequest?: boolean | null;
2794
- /** If present, indicates the action that triggered the event. */
2795
- originatedFrom?: string | null;
2796
- /**
2797
- * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
2798
- * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
2799
- */
2800
- entityEventSequence?: string | null;
2801
- }
2802
- /** @oneof */
2803
- interface DomainEventBodyOneOf {
2804
- createdEvent?: EntityCreatedEvent;
2805
- updatedEvent?: EntityUpdatedEvent;
2806
- deletedEvent?: EntityDeletedEvent;
2807
- actionEvent?: ActionEvent;
2808
- }
2809
- interface EntityCreatedEvent {
2810
- entity?: string;
2811
- }
2812
- interface RestoreInfo {
2813
- deletedDate?: Date | null;
2814
- }
2815
- interface EntityUpdatedEvent {
2816
- /**
2817
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
2818
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
2819
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
2820
- */
2821
- currentEntity?: string;
2822
- }
2823
- interface EntityDeletedEvent {
2824
- /** Entity that was deleted. */
2825
- deletedEntity?: string | null;
2826
- }
2827
- interface ActionEvent {
2828
- body?: string;
2829
- }
2830
- interface MessageEnvelope {
2831
- /**
2832
- * App instance ID.
2833
- * @format GUID
2834
- */
2835
- instanceId?: string | null;
2836
- /**
2837
- * Event type.
2838
- * @maxLength 150
2839
- */
2840
- eventType?: string;
2841
- /** The identification type and identity data. */
2842
- identity?: IdentificationData;
2843
- /** Stringify payload. */
2844
- data?: string;
2845
- /** Details related to the account */
2846
- accountInfo?: AccountInfo;
2847
- }
2848
- interface IdentificationData extends IdentificationDataIdOneOf {
2849
- /**
2850
- * ID of a site visitor that has not logged in to the site.
2851
- * @format GUID
2852
- */
2853
- anonymousVisitorId?: string;
2854
- /**
2855
- * ID of a site visitor that has logged in to the site.
2856
- * @format GUID
2857
- */
2858
- memberId?: string;
2859
- /**
2860
- * ID of a Wix user (site owner, contributor, etc.).
2861
- * @format GUID
2862
- */
2863
- wixUserId?: string;
2864
- /**
2865
- * ID of an app.
2866
- * @format GUID
2867
- */
2868
- appId?: string;
2869
- /** @readonly */
2870
- identityType?: WebhookIdentityTypeWithLiterals;
2871
- }
2872
- /** @oneof */
2873
- interface IdentificationDataIdOneOf {
2874
- /**
2875
- * ID of a site visitor that has not logged in to the site.
2876
- * @format GUID
2877
- */
2878
- anonymousVisitorId?: string;
2879
- /**
2880
- * ID of a site visitor that has logged in to the site.
2881
- * @format GUID
2882
- */
2883
- memberId?: string;
2884
- /**
2885
- * ID of a Wix user (site owner, contributor, etc.).
2886
- * @format GUID
2887
- */
2888
- wixUserId?: string;
2889
- /**
2890
- * ID of an app.
2891
- * @format GUID
2892
- */
2893
- appId?: string;
2894
- }
2895
- declare enum WebhookIdentityType {
2896
- UNKNOWN = "UNKNOWN",
2897
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
2898
- MEMBER = "MEMBER",
2899
- WIX_USER = "WIX_USER",
2900
- APP = "APP"
2901
- }
2902
- /** @enumType */
2903
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
2904
- interface AccountInfo {
2905
- /**
2906
- * ID of the Wix account associated with the event.
2907
- * @format GUID
2908
- */
2909
- accountId?: string | null;
2910
- /**
2911
- * ID of the parent Wix account. Only included when accountId belongs to a child account.
2912
- * @format GUID
2913
- */
2914
- parentAccountId?: string | null;
2915
- /**
2916
- * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
2917
- * @format GUID
2918
- */
2919
- siteId?: string | null;
2920
- }
2921
- /** Get Blog Publications Count Stats request */
2922
- interface QueryPublicationsCountStatsRequest {
2923
- /** Start of time range to return, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
2924
- rangeStart?: Date | null;
2925
- /** Non-inclusive end of time range to return, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
2926
- rangeEnd?: Date | null;
2927
- /** Order of the returned results. */
2928
- order?: QueryPublicationsCountStatsRequestOrderWithLiterals;
2929
- /** Number of months to include in the response. */
2930
- months?: number;
2931
- /**
2932
- * Language filter
2933
- *
2934
- * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
2935
- * @format LANGUAGE_TAG
2936
- */
2937
- language?: string | null;
2938
- /**
2939
- * Timezone of the client.
2940
- * @minLength 3
2941
- * @maxLength 100
2942
- */
2943
- timeZone?: string | null;
2944
- }
2945
- declare enum QueryPublicationsCountStatsRequestOrder {
2946
- UNKNOWN = "UNKNOWN",
2947
- OLDEST = "OLDEST",
2948
- NEWEST = "NEWEST"
2949
- }
2950
- /** @enumType */
2951
- type QueryPublicationsCountStatsRequestOrderWithLiterals = QueryPublicationsCountStatsRequestOrder | 'UNKNOWN' | 'OLDEST' | 'NEWEST';
2952
- /** Get Blog Publications Count Stats response */
2953
- interface QueryPublicationsCountStatsResponse {
2954
- /** Chronologically ordered list of publications. */
2955
- stats?: PeriodPublicationsCount[];
2956
- }
2957
- /** Publications count for a specific time period */
2958
- interface PeriodPublicationsCount {
2959
- /** Start of time range in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
2960
- periodStart?: Date | null;
2961
- /** Number of posts published during this month. */
2962
- publicationsCount?: number;
2963
- }
2964
- /** Get Blog Post Count Stats request */
2965
- interface QueryPostCountStatsRequest {
2966
- /** Start of time range to return, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
2967
- rangeStart?: Date | null;
2968
- /**
2969
- * Order of returned results.
2970
- *
2971
- * - `OLDEST`: posts by date in ascending order.
2972
- * - `NEWEST`: posts by date in descending order.
2973
- *
2974
- * Default: `OLDEST`
2975
- */
2976
- order?: OrderWithLiterals;
2977
- /** Number of months to include in response. */
2978
- months?: number;
2979
- /**
2980
- * Language filter.
2981
- *
2982
- * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
2983
- * Pass a language to only receive the period post count for that specified language.
2984
- * @format LANGUAGE_TAG
2985
- */
2986
- language?: string | null;
2987
- /**
2988
- * Time zone to use when calculating the start of the month.
2989
- *
2990
- * [UTC timezone offset](https://en.wikipedia.org/wiki/List_of_UTC_offsets) format. For example, New York time zone is `-05`.
2991
- * @minLength 3
2992
- * @maxLength 100
2993
- */
2994
- timeZone?: string | null;
2995
- }
2996
- declare enum Order {
2997
- UNKNOWN = "UNKNOWN",
2998
- OLDEST = "OLDEST",
2999
- NEWEST = "NEWEST"
3000
- }
3001
- /** @enumType */
3002
- type OrderWithLiterals = Order | 'UNKNOWN' | 'OLDEST' | 'NEWEST';
3003
- /** Get Blog Post Count Stats response */
3004
- interface QueryPostCountStatsResponse {
3005
- /** List of published post counts by month. */
3006
- stats?: PeriodPostCount[];
3007
- }
3008
- /** Post count for a specific time period */
3009
- interface PeriodPostCount {
3010
- /** Start of time range in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
3011
- periodStart?: Date | null;
3012
- /** Number of posts published during this month. */
3013
- postCount?: number;
3014
- }
3015
- interface GetTotalPublicationsRequest {
3016
- /**
3017
- * Language filter
3018
- * @minLength 2
3019
- * @format LANGUAGE_TAG
3020
- */
3021
- language?: string | null;
3022
- }
3023
- interface GetTotalPublicationsResponse {
3024
- /** Total amount of publications. */
3025
- total?: number;
3026
- }
3027
- interface GetTotalPostsRequest {
3028
- /**
3029
- * Language filter.
3030
- *
3031
- * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
3032
- * Pass a language to receive the total amount of posts in that specified language.
3033
- * @format LANGUAGE_TAG
3034
- */
3035
- language?: string | null;
3036
- }
3037
- interface GetTotalPostsResponse {
3038
- /** Total amount of published posts. */
3039
- total?: number;
3040
- }
3041
2767
  interface ListTemplatesRequest {
3042
2768
  /**
3043
2769
  * Filter post templates by given template category ids
@@ -3466,157 +3192,289 @@ interface DraftPostTranslation {
3466
3192
  /** Post URL. */
3467
3193
  url?: string;
3468
3194
  }
3469
- interface ListDemoPostsRequest {
3195
+ interface DomainEvent extends DomainEventBodyOneOf {
3196
+ createdEvent?: EntityCreatedEvent;
3197
+ updatedEvent?: EntityUpdatedEvent;
3198
+ deletedEvent?: EntityDeletedEvent;
3199
+ actionEvent?: ActionEvent;
3200
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
3201
+ _id?: string;
3470
3202
  /**
3471
- * Whether to return only featured posts.
3472
- *
3473
- * Default: `false`
3203
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
3204
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
3474
3205
  */
3475
- featured?: boolean;
3206
+ entityFqdn?: string;
3476
3207
  /**
3477
- * Hashtag filter.
3478
- *
3479
- * Pass an array of hashtags to return only posts containing any of the provided hashtags.
3480
- * If omitted, all posts with or without hashtags are returned.
3481
- * @maxSize 100
3482
- * @maxLength 100
3208
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
3209
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
3483
3210
  */
3484
- hashtags?: string[];
3211
+ slug?: string;
3212
+ /** ID of the entity associated with the event. */
3213
+ entityId?: string;
3214
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
3215
+ eventTime?: Date | null;
3485
3216
  /**
3486
- * Category filter.
3487
- *
3488
- * Pass an array of category IDs to return only posts with any of the provided categories.
3489
- * If omitted, all posts with or without associated categories are returned.
3490
- * @maxSize 50
3217
+ * Whether the event was triggered as a result of a privacy regulation application
3218
+ * (for example, GDPR).
3219
+ */
3220
+ triggeredByAnonymizeRequest?: boolean | null;
3221
+ /** If present, indicates the action that triggered the event. */
3222
+ originatedFrom?: string | null;
3223
+ /**
3224
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
3225
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
3226
+ */
3227
+ entityEventSequence?: string | null;
3228
+ }
3229
+ /** @oneof */
3230
+ interface DomainEventBodyOneOf {
3231
+ createdEvent?: EntityCreatedEvent;
3232
+ updatedEvent?: EntityUpdatedEvent;
3233
+ deletedEvent?: EntityDeletedEvent;
3234
+ actionEvent?: ActionEvent;
3235
+ }
3236
+ interface EntityCreatedEvent {
3237
+ entity?: string;
3238
+ }
3239
+ interface RestoreInfo {
3240
+ deletedDate?: Date | null;
3241
+ }
3242
+ interface EntityUpdatedEvent {
3243
+ /**
3244
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
3245
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
3246
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
3247
+ */
3248
+ currentEntity?: string;
3249
+ }
3250
+ interface EntityDeletedEvent {
3251
+ /** Entity that was deleted. */
3252
+ deletedEntity?: string | null;
3253
+ }
3254
+ interface ActionEvent {
3255
+ body?: string;
3256
+ }
3257
+ interface MessageEnvelope {
3258
+ /**
3259
+ * App instance ID.
3491
3260
  * @format GUID
3492
3261
  */
3493
- categoryIds?: string[];
3262
+ instanceId?: string | null;
3494
3263
  /**
3495
- * Tag filter.
3496
- *
3497
- * Pass an array of tag IDs to return only posts with any of the provided tags.
3498
- * If omitted, all posts with or without tags are returned.
3499
- * @maxSize 50
3264
+ * Event type.
3265
+ * @maxLength 150
3266
+ */
3267
+ eventType?: string;
3268
+ /** The identification type and identity data. */
3269
+ identity?: IdentificationData;
3270
+ /** Stringify payload. */
3271
+ data?: string;
3272
+ /** Details related to the account */
3273
+ accountInfo?: AccountInfo;
3274
+ }
3275
+ interface IdentificationData extends IdentificationDataIdOneOf {
3276
+ /**
3277
+ * ID of a site visitor that has not logged in to the site.
3500
3278
  * @format GUID
3501
3279
  */
3502
- tagIds?: string[];
3280
+ anonymousVisitorId?: string;
3503
3281
  /**
3504
- * Sorting options.
3505
- *
3506
- * - `FEED`: Ordered by `firstPublishedDate` in descending order with pinned posts first.
3507
- * - `VIEW_COUNT`: Ordered by total number of views in descending order.
3508
- * - `LIKE_COUNT`: Ordered by total number of likes in descending order.
3509
- * - `PUBLISHED_DATE_ASC`: Ordered by `firstPublishedDate` in ascending order.
3510
- * - `PUBLISHED_DATE_DESC`: Ordered by `firstPublishedDate` in descending order.
3511
- * - `TITLE_ASC`: Ordered by `title` in ascending order.
3512
- * - `TITLE_DESC`: Ordered by `title` in descending order.
3513
- * - `RATING`: reserved for internal use.
3282
+ * ID of a site visitor that has logged in to the site.
3283
+ * @format GUID
3284
+ */
3285
+ memberId?: string;
3286
+ /**
3287
+ * ID of a Wix user (site owner, contributor, etc.).
3288
+ * @format GUID
3289
+ */
3290
+ wixUserId?: string;
3291
+ /**
3292
+ * ID of an app.
3293
+ * @format GUID
3294
+ */
3295
+ appId?: string;
3296
+ /** @readonly */
3297
+ identityType?: WebhookIdentityTypeWithLiterals;
3298
+ }
3299
+ /** @oneof */
3300
+ interface IdentificationDataIdOneOf {
3301
+ /**
3302
+ * ID of a site visitor that has not logged in to the site.
3303
+ * @format GUID
3304
+ */
3305
+ anonymousVisitorId?: string;
3306
+ /**
3307
+ * ID of a site visitor that has logged in to the site.
3308
+ * @format GUID
3309
+ */
3310
+ memberId?: string;
3311
+ /**
3312
+ * ID of a Wix user (site owner, contributor, etc.).
3313
+ * @format GUID
3314
+ */
3315
+ wixUserId?: string;
3316
+ /**
3317
+ * ID of an app.
3318
+ * @format GUID
3319
+ */
3320
+ appId?: string;
3321
+ }
3322
+ declare enum WebhookIdentityType {
3323
+ UNKNOWN = "UNKNOWN",
3324
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
3325
+ MEMBER = "MEMBER",
3326
+ WIX_USER = "WIX_USER",
3327
+ APP = "APP"
3328
+ }
3329
+ /** @enumType */
3330
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
3331
+ interface AccountInfo {
3332
+ /**
3333
+ * ID of the Wix account associated with the event.
3334
+ * @format GUID
3335
+ */
3336
+ accountId?: string | null;
3337
+ /**
3338
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
3339
+ * @format GUID
3340
+ */
3341
+ parentAccountId?: string | null;
3342
+ /**
3343
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
3344
+ * @format GUID
3345
+ */
3346
+ siteId?: string | null;
3347
+ }
3348
+ /** Get Blog Publications Count Stats request */
3349
+ interface QueryPublicationsCountStatsRequest {
3350
+ /** Start of time range to return, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
3351
+ rangeStart?: Date | null;
3352
+ /** Non-inclusive end of time range to return, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
3353
+ rangeEnd?: Date | null;
3354
+ /** Order of the returned results. */
3355
+ order?: QueryPublicationsCountStatsRequestOrderWithLiterals;
3356
+ /** Number of months to include in the response. */
3357
+ months?: number;
3358
+ /**
3359
+ * Language filter
3514
3360
  *
3515
- * Default: `FEED`
3361
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
3362
+ * @format LANGUAGE_TAG
3516
3363
  */
3517
- sort?: GetPostsSortWithLiterals;
3518
- /** Pagination options. */
3519
- paging?: BlogPaging;
3364
+ language?: string | null;
3520
3365
  /**
3521
- * __Deprecated.__ Use `fieldsets` instead.
3522
- * This parameter will be removed on June 30, 2023.
3366
+ * Timezone of the client.
3367
+ * @minLength 3
3368
+ * @maxLength 100
3369
+ */
3370
+ timeZone?: string | null;
3371
+ }
3372
+ declare enum QueryPublicationsCountStatsRequestOrder {
3373
+ UNKNOWN = "UNKNOWN",
3374
+ OLDEST = "OLDEST",
3375
+ NEWEST = "NEWEST"
3376
+ }
3377
+ /** @enumType */
3378
+ type QueryPublicationsCountStatsRequestOrderWithLiterals = QueryPublicationsCountStatsRequestOrder | 'UNKNOWN' | 'OLDEST' | 'NEWEST';
3379
+ /** Get Blog Publications Count Stats response */
3380
+ interface QueryPublicationsCountStatsResponse {
3381
+ /** Chronologically ordered list of publications. */
3382
+ stats?: PeriodPublicationsCount[];
3383
+ }
3384
+ /** Publications count for a specific time period */
3385
+ interface PeriodPublicationsCount {
3386
+ /** Start of time range in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
3387
+ periodStart?: Date | null;
3388
+ /** Number of posts published during this month. */
3389
+ publicationsCount?: number;
3390
+ }
3391
+ /** Get Blog Post Count Stats request */
3392
+ interface QueryPostCountStatsRequest {
3393
+ /** Start of time range to return, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
3394
+ rangeStart?: Date | null;
3395
+ /**
3396
+ * Order of returned results.
3523
3397
  *
3524
- * List of post fields to be included in the response.
3525
- * @maxSize 20
3526
- * @deprecated __Deprecated.__ Use `fieldsets` instead.
3527
- * This parameter will be removed on June 30, 2023.
3398
+ * - `OLDEST`: posts by date in ascending order.
3399
+ * - `NEWEST`: posts by date in descending order.
3528
3400
  *
3529
- * List of post fields to be included in the response.
3530
- * @replacedBy fieldsets
3531
- * @targetRemovalDate 2024-06-30
3401
+ * Default: `OLDEST`
3532
3402
  */
3533
- fieldsToInclude?: PostFieldFieldWithLiterals[];
3403
+ order?: OrderWithLiterals;
3404
+ /** Number of months to include in response. */
3405
+ months?: number;
3534
3406
  /**
3535
3407
  * Language filter.
3536
3408
  *
3537
3409
  * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
3538
- * Pass a language to only receive posts that are in that language.
3539
- * If omitted, posts in all languages are returned.
3410
+ * Pass a language to only receive the period post count for that specified language.
3540
3411
  * @format LANGUAGE_TAG
3541
3412
  */
3542
3413
  language?: string | null;
3543
3414
  /**
3544
- * Post owner's member ID.
3545
- * @format GUID
3546
- */
3547
- memberId?: string | null;
3548
- /**
3549
- * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
3550
- * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
3551
- * only the post’s base fields are returned.
3552
- * @maxSize 20
3415
+ * Time zone to use when calculating the start of the month.
3416
+ *
3417
+ * [UTC timezone offset](https://en.wikipedia.org/wiki/List_of_UTC_offsets) format. For example, New York time zone is `-05`.
3418
+ * @minLength 3
3419
+ * @maxLength 100
3553
3420
  */
3554
- fieldsets?: PostFieldFieldWithLiterals[];
3555
- }
3556
- declare enum GetPostsSort {
3557
- /** Ordered by `firstPublishedDate` in descending order with pinned posts first. */
3558
- FEED = "FEED",
3559
- /** Ordered by `firstPublishedDate` in ascending order. */
3560
- PUBLISHED_DATE_ASC = "PUBLISHED_DATE_ASC",
3561
- /** Ordered by `firstPublishedDate` in descending order. */
3562
- PUBLISHED_DATE_DESC = "PUBLISHED_DATE_DESC",
3563
- /** Ordered by total number of views in descending order. */
3564
- VIEW_COUNT = "VIEW_COUNT",
3565
- /** Ordered by total number of likes in descending order. */
3566
- LIKE_COUNT = "LIKE_COUNT",
3567
- /** Ordered by `title` in ascending order. */
3568
- TITLE_ASC = "TITLE_ASC",
3569
- /** Ordered by `title` in descending order. */
3570
- TITLE_DESC = "TITLE_DESC"
3421
+ timeZone?: string | null;
3571
3422
  }
3572
- /** @enumType */
3573
- type GetPostsSortWithLiterals = GetPostsSort | 'FEED' | 'PUBLISHED_DATE_ASC' | 'PUBLISHED_DATE_DESC' | 'VIEW_COUNT' | 'LIKE_COUNT' | 'TITLE_ASC' | 'TITLE_DESC';
3574
- declare enum PostFieldField {
3423
+ declare enum Order {
3575
3424
  UNKNOWN = "UNKNOWN",
3576
- /** Includes post URL when present. */
3577
- URL = "URL",
3578
- /** Includes post content text string when present. */
3579
- CONTENT_TEXT = "CONTENT_TEXT",
3580
- /** Includes post metrics when present. */
3581
- METRICS = "METRICS",
3582
- /** Includes SEO data. */
3583
- SEO = "SEO",
3584
- /** Includes post owner's contact ID. */
3585
- CONTACT_ID = "CONTACT_ID",
3586
- /** Includes post rich content. */
3587
- RICH_CONTENT = "RICH_CONTENT",
3588
- /** Includes post reference ID field. */
3589
- REFERENCE_ID = "REFERENCE_ID"
3425
+ OLDEST = "OLDEST",
3426
+ NEWEST = "NEWEST"
3590
3427
  }
3591
3428
  /** @enumType */
3592
- type PostFieldFieldWithLiterals = PostFieldField | 'UNKNOWN' | 'URL' | 'CONTENT_TEXT' | 'METRICS' | 'SEO' | 'CONTACT_ID' | 'RICH_CONTENT' | 'REFERENCE_ID';
3593
- interface ListDemoPostsResponse {
3594
- /** List of posts. */
3595
- posts?: Post[];
3596
- /** Details on the paged set of results returned. */
3597
- metaData?: MetaData;
3429
+ type OrderWithLiterals = Order | 'UNKNOWN' | 'OLDEST' | 'NEWEST';
3430
+ /** Get Blog Post Count Stats response */
3431
+ interface QueryPostCountStatsResponse {
3432
+ /** List of published post counts by month. */
3433
+ stats?: PeriodPostCount[];
3598
3434
  }
3599
- interface ConvertDraftJsToRichContentRequest {
3600
- /** DraftJs content to convert to Rich content. */
3601
- content?: Record<string, any> | null;
3435
+ /** Post count for a specific time period */
3436
+ interface PeriodPostCount {
3437
+ /** Start of time range in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
3438
+ periodStart?: Date | null;
3439
+ /** Number of posts published during this month. */
3440
+ postCount?: number;
3602
3441
  }
3603
- interface ConvertDraftJsToRichContentResponse {
3442
+ interface GetTotalPublicationsRequest {
3604
3443
  /**
3605
- * Rich content converted from DraftJs content.
3606
- * @maxLength 2000000
3444
+ * Language filter
3445
+ * @minLength 2
3446
+ * @format LANGUAGE_TAG
3607
3447
  */
3608
- richContent?: string;
3448
+ language?: string | null;
3609
3449
  }
3610
- interface ConvertRichContentToDraftJsRequest {
3450
+ interface GetTotalPublicationsResponse {
3451
+ /** Total amount of publications. */
3452
+ total?: number;
3453
+ }
3454
+ interface GetTotalPostsRequest {
3611
3455
  /**
3612
- * Rich content to convert to DraftJs content.
3613
- * @maxLength 2000000
3456
+ * Language filter.
3457
+ *
3458
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
3459
+ * Pass a language to receive the total amount of posts in that specified language.
3460
+ * @format LANGUAGE_TAG
3614
3461
  */
3615
- richContent?: string;
3462
+ language?: string | null;
3616
3463
  }
3617
- interface ConvertRichContentToDraftJsResponse {
3618
- /** DraftJs content converted from Rich content. */
3619
- content?: Record<string, any> | null;
3464
+ interface GetTotalPostsResponse {
3465
+ /** Total amount of published posts. */
3466
+ total?: number;
3467
+ }
3468
+ interface GetTotalLikesPerMemberRequest {
3469
+ /**
3470
+ * Member ID.
3471
+ * @format GUID
3472
+ */
3473
+ memberId?: string;
3474
+ }
3475
+ interface GetTotalLikesPerMemberResponse {
3476
+ /** The total number of likes of the member. */
3477
+ total?: number;
3620
3478
  }
3621
3479
  interface PostCountersUpdated extends PostCountersUpdatedInitiatorOneOf {
3622
3480
  /**
@@ -3687,6 +3545,25 @@ interface GetPostRequest {
3687
3545
  */
3688
3546
  fieldsets?: PostFieldFieldWithLiterals[];
3689
3547
  }
3548
+ declare enum PostFieldField {
3549
+ UNKNOWN = "UNKNOWN",
3550
+ /** Includes post URL when present. */
3551
+ URL = "URL",
3552
+ /** Includes post content text string when present. */
3553
+ CONTENT_TEXT = "CONTENT_TEXT",
3554
+ /** Includes post metrics when present. */
3555
+ METRICS = "METRICS",
3556
+ /** Includes SEO data. */
3557
+ SEO = "SEO",
3558
+ /** Includes post owner's contact ID. */
3559
+ CONTACT_ID = "CONTACT_ID",
3560
+ /** Includes post rich content. */
3561
+ RICH_CONTENT = "RICH_CONTENT",
3562
+ /** Includes post reference ID field. */
3563
+ REFERENCE_ID = "REFERENCE_ID"
3564
+ }
3565
+ /** @enumType */
3566
+ type PostFieldFieldWithLiterals = PostFieldField | 'UNKNOWN' | 'URL' | 'CONTENT_TEXT' | 'METRICS' | 'SEO' | 'CONTACT_ID' | 'RICH_CONTENT' | 'REFERENCE_ID';
3690
3567
  interface GetPostResponse {
3691
3568
  /** Retrieved post info. */
3692
3569
  post?: Post;
@@ -3779,6 +3656,24 @@ interface ListPostsRequest {
3779
3656
  */
3780
3657
  fieldsets?: PostFieldFieldWithLiterals[];
3781
3658
  }
3659
+ declare enum GetPostsSort {
3660
+ /** Ordered by `firstPublishedDate` in descending order with pinned posts first. */
3661
+ FEED = "FEED",
3662
+ /** Ordered by `firstPublishedDate` in ascending order. */
3663
+ PUBLISHED_DATE_ASC = "PUBLISHED_DATE_ASC",
3664
+ /** Ordered by `firstPublishedDate` in descending order. */
3665
+ PUBLISHED_DATE_DESC = "PUBLISHED_DATE_DESC",
3666
+ /** Ordered by total number of views in descending order. */
3667
+ VIEW_COUNT = "VIEW_COUNT",
3668
+ /** Ordered by total number of likes in descending order. */
3669
+ LIKE_COUNT = "LIKE_COUNT",
3670
+ /** Ordered by `title` in ascending order. */
3671
+ TITLE_ASC = "TITLE_ASC",
3672
+ /** Ordered by `title` in descending order. */
3673
+ TITLE_DESC = "TITLE_DESC"
3674
+ }
3675
+ /** @enumType */
3676
+ type GetPostsSortWithLiterals = GetPostsSort | 'FEED' | 'PUBLISHED_DATE_ASC' | 'PUBLISHED_DATE_DESC' | 'VIEW_COUNT' | 'LIKE_COUNT' | 'TITLE_ASC' | 'TITLE_DESC';
3782
3677
  interface ListPostsResponse {
3783
3678
  /** List of retrieved posts. */
3784
3679
  posts?: Post[];
@@ -4128,6 +4023,121 @@ interface PostCount {
4128
4023
  /** Number of posts. */
4129
4024
  postCount?: number;
4130
4025
  }
4026
+ interface ListDemoPostsRequest {
4027
+ /**
4028
+ * Whether to return only featured posts.
4029
+ *
4030
+ * Default: `false`
4031
+ */
4032
+ featured?: boolean;
4033
+ /**
4034
+ * Hashtag filter.
4035
+ *
4036
+ * Pass an array of hashtags to return only posts containing any of the provided hashtags.
4037
+ * If omitted, all posts with or without hashtags are returned.
4038
+ * @maxSize 100
4039
+ * @maxLength 100
4040
+ */
4041
+ hashtags?: string[];
4042
+ /**
4043
+ * Category filter.
4044
+ *
4045
+ * Pass an array of category IDs to return only posts with any of the provided categories.
4046
+ * If omitted, all posts with or without associated categories are returned.
4047
+ * @maxSize 50
4048
+ * @format GUID
4049
+ */
4050
+ categoryIds?: string[];
4051
+ /**
4052
+ * Tag filter.
4053
+ *
4054
+ * Pass an array of tag IDs to return only posts with any of the provided tags.
4055
+ * If omitted, all posts with or without tags are returned.
4056
+ * @maxSize 50
4057
+ * @format GUID
4058
+ */
4059
+ tagIds?: string[];
4060
+ /**
4061
+ * Sorting options.
4062
+ *
4063
+ * - `FEED`: Ordered by `firstPublishedDate` in descending order with pinned posts first.
4064
+ * - `VIEW_COUNT`: Ordered by total number of views in descending order.
4065
+ * - `LIKE_COUNT`: Ordered by total number of likes in descending order.
4066
+ * - `PUBLISHED_DATE_ASC`: Ordered by `firstPublishedDate` in ascending order.
4067
+ * - `PUBLISHED_DATE_DESC`: Ordered by `firstPublishedDate` in descending order.
4068
+ * - `TITLE_ASC`: Ordered by `title` in ascending order.
4069
+ * - `TITLE_DESC`: Ordered by `title` in descending order.
4070
+ * - `RATING`: reserved for internal use.
4071
+ *
4072
+ * Default: `FEED`
4073
+ */
4074
+ sort?: GetPostsSortWithLiterals;
4075
+ /** Pagination options. */
4076
+ paging?: BlogPaging;
4077
+ /**
4078
+ * __Deprecated.__ Use `fieldsets` instead.
4079
+ * This parameter will be removed on June 30, 2023.
4080
+ *
4081
+ * List of post fields to be included in the response.
4082
+ * @maxSize 20
4083
+ * @deprecated __Deprecated.__ Use `fieldsets` instead.
4084
+ * This parameter will be removed on June 30, 2023.
4085
+ *
4086
+ * List of post fields to be included in the response.
4087
+ * @replacedBy fieldsets
4088
+ * @targetRemovalDate 2024-06-30
4089
+ */
4090
+ fieldsToInclude?: PostFieldFieldWithLiterals[];
4091
+ /**
4092
+ * Language filter.
4093
+ *
4094
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
4095
+ * Pass a language to only receive posts that are in that language.
4096
+ * If omitted, posts in all languages are returned.
4097
+ * @format LANGUAGE_TAG
4098
+ */
4099
+ language?: string | null;
4100
+ /**
4101
+ * Post owner's member ID.
4102
+ * @format GUID
4103
+ */
4104
+ memberId?: string | null;
4105
+ /**
4106
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
4107
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
4108
+ * only the post’s base fields are returned.
4109
+ * @maxSize 20
4110
+ */
4111
+ fieldsets?: PostFieldFieldWithLiterals[];
4112
+ }
4113
+ interface ListDemoPostsResponse {
4114
+ /** List of posts. */
4115
+ posts?: Post[];
4116
+ /** Details on the paged set of results returned. */
4117
+ metaData?: MetaData;
4118
+ }
4119
+ interface ConvertDraftJsToRichContentRequest {
4120
+ /** DraftJs content to convert to Rich content. */
4121
+ content?: Record<string, any> | null;
4122
+ }
4123
+ interface ConvertDraftJsToRichContentResponse {
4124
+ /**
4125
+ * Rich content converted from DraftJs content.
4126
+ * @maxLength 2000000
4127
+ */
4128
+ richContent?: string;
4129
+ }
4130
+ interface ConvertRichContentToDraftJsRequest {
4131
+ /**
4132
+ * Rich content to convert to DraftJs content.
4133
+ * @maxLength 2000000
4134
+ */
4135
+ richContent?: string;
4136
+ }
4137
+ interface ConvertRichContentToDraftJsResponse {
4138
+ /** DraftJs content converted from Rich content. */
4139
+ content?: Record<string, any> | null;
4140
+ }
4131
4141
  interface BaseEventMetadata {
4132
4142
  /**
4133
4143
  * App instance ID.