@wix/auto_sdk_faq_category 1.0.0

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 (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/faq-category-v2-category-category.context.d.ts +21 -0
  11. package/build/cjs/src/faq-category-v2-category-category.context.js +26 -0
  12. package/build/cjs/src/faq-category-v2-category-category.context.js.map +1 -0
  13. package/build/cjs/src/faq-category-v2-category-category.http.d.ts +24 -0
  14. package/build/cjs/src/faq-category-v2-category-category.http.js +395 -0
  15. package/build/cjs/src/faq-category-v2-category-category.http.js.map +1 -0
  16. package/build/cjs/src/faq-category-v2-category-category.meta.d.ts +27 -0
  17. package/build/cjs/src/faq-category-v2-category-category.meta.js +161 -0
  18. package/build/cjs/src/faq-category-v2-category-category.meta.js.map +1 -0
  19. package/build/cjs/src/faq-category-v2-category-category.public.d.ts +72 -0
  20. package/build/cjs/src/faq-category-v2-category-category.public.js +98 -0
  21. package/build/cjs/src/faq-category-v2-category-category.public.js.map +1 -0
  22. package/build/cjs/src/faq-category-v2-category-category.types.d.ts +302 -0
  23. package/build/cjs/src/faq-category-v2-category-category.types.js +17 -0
  24. package/build/cjs/src/faq-category-v2-category-category.types.js.map +1 -0
  25. package/build/cjs/src/faq-category-v2-category-category.universal.d.ts +587 -0
  26. package/build/cjs/src/faq-category-v2-category-category.universal.js +332 -0
  27. package/build/cjs/src/faq-category-v2-category-category.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/faq-category-v2-category-category.context.d.ts +21 -0
  39. package/build/es/src/faq-category-v2-category-category.context.js +21 -0
  40. package/build/es/src/faq-category-v2-category-category.context.js.map +1 -0
  41. package/build/es/src/faq-category-v2-category-category.http.d.ts +24 -0
  42. package/build/es/src/faq-category-v2-category-category.http.js +385 -0
  43. package/build/es/src/faq-category-v2-category-category.http.js.map +1 -0
  44. package/build/es/src/faq-category-v2-category-category.meta.d.ts +27 -0
  45. package/build/es/src/faq-category-v2-category-category.meta.js +128 -0
  46. package/build/es/src/faq-category-v2-category-category.meta.js.map +1 -0
  47. package/build/es/src/faq-category-v2-category-category.public.d.ts +72 -0
  48. package/build/es/src/faq-category-v2-category-category.public.js +86 -0
  49. package/build/es/src/faq-category-v2-category-category.public.js.map +1 -0
  50. package/build/es/src/faq-category-v2-category-category.types.d.ts +302 -0
  51. package/build/es/src/faq-category-v2-category-category.types.js +14 -0
  52. package/build/es/src/faq-category-v2-category-category.types.js.map +1 -0
  53. package/build/es/src/faq-category-v2-category-category.universal.d.ts +587 -0
  54. package/build/es/src/faq-category-v2-category-category.universal.js +299 -0
  55. package/build/es/src/faq-category-v2-category-category.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/faq-category-v2-category-category.context.d.ts +21 -0
  66. package/build/internal/cjs/src/faq-category-v2-category-category.context.js +26 -0
  67. package/build/internal/cjs/src/faq-category-v2-category-category.context.js.map +1 -0
  68. package/build/internal/cjs/src/faq-category-v2-category-category.http.d.ts +24 -0
  69. package/build/internal/cjs/src/faq-category-v2-category-category.http.js +395 -0
  70. package/build/internal/cjs/src/faq-category-v2-category-category.http.js.map +1 -0
  71. package/build/internal/cjs/src/faq-category-v2-category-category.meta.d.ts +27 -0
  72. package/build/internal/cjs/src/faq-category-v2-category-category.meta.js +161 -0
  73. package/build/internal/cjs/src/faq-category-v2-category-category.meta.js.map +1 -0
  74. package/build/internal/cjs/src/faq-category-v2-category-category.public.d.ts +72 -0
  75. package/build/internal/cjs/src/faq-category-v2-category-category.public.js +98 -0
  76. package/build/internal/cjs/src/faq-category-v2-category-category.public.js.map +1 -0
  77. package/build/internal/cjs/src/faq-category-v2-category-category.types.d.ts +302 -0
  78. package/build/internal/cjs/src/faq-category-v2-category-category.types.js +17 -0
  79. package/build/internal/cjs/src/faq-category-v2-category-category.types.js.map +1 -0
  80. package/build/internal/cjs/src/faq-category-v2-category-category.universal.d.ts +587 -0
  81. package/build/internal/cjs/src/faq-category-v2-category-category.universal.js +332 -0
  82. package/build/internal/cjs/src/faq-category-v2-category-category.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/faq-category-v2-category-category.context.d.ts +21 -0
  93. package/build/internal/es/src/faq-category-v2-category-category.context.js +21 -0
  94. package/build/internal/es/src/faq-category-v2-category-category.context.js.map +1 -0
  95. package/build/internal/es/src/faq-category-v2-category-category.http.d.ts +24 -0
  96. package/build/internal/es/src/faq-category-v2-category-category.http.js +385 -0
  97. package/build/internal/es/src/faq-category-v2-category-category.http.js.map +1 -0
  98. package/build/internal/es/src/faq-category-v2-category-category.meta.d.ts +27 -0
  99. package/build/internal/es/src/faq-category-v2-category-category.meta.js +128 -0
  100. package/build/internal/es/src/faq-category-v2-category-category.meta.js.map +1 -0
  101. package/build/internal/es/src/faq-category-v2-category-category.public.d.ts +72 -0
  102. package/build/internal/es/src/faq-category-v2-category-category.public.js +86 -0
  103. package/build/internal/es/src/faq-category-v2-category-category.public.js.map +1 -0
  104. package/build/internal/es/src/faq-category-v2-category-category.types.d.ts +302 -0
  105. package/build/internal/es/src/faq-category-v2-category-category.types.js +14 -0
  106. package/build/internal/es/src/faq-category-v2-category-category.types.js.map +1 -0
  107. package/build/internal/es/src/faq-category-v2-category-category.universal.d.ts +587 -0
  108. package/build/internal/es/src/faq-category-v2-category-category.universal.js +299 -0
  109. package/build/internal/es/src/faq-category-v2-category-category.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,72 @@
1
+ import { EventDefinition, HttpClient } from '@wix/sdk-types';
2
+ import { CategoriesQueryBuilder, Category, CategoryCreatedEnvelope, CategoryDeletedEnvelope, CategoryUpdatedEnvelope, ListCategoriesOptions, ListCategoriesResponse, UpdateCategory, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse } from './faq-category-v2-category-category.universal.js';
3
+ export declare const __metadata: {
4
+ PACKAGE_NAME: string;
5
+ };
6
+ export declare function createCategory(httpClient: HttpClient): CreateCategorySignature;
7
+ interface CreateCategorySignature {
8
+ /**
9
+ * Creates a new Category.
10
+ * @param - Category to be created.
11
+ * @returns The created Category.
12
+ */
13
+ (category: Category): Promise<Category>;
14
+ }
15
+ export declare function getCategory(httpClient: HttpClient): GetCategorySignature;
16
+ interface GetCategorySignature {
17
+ /**
18
+ * Retrieves a single Category by id.
19
+ * @param - ID of the Category to retrieve.
20
+ * @returns The requested Category.
21
+ */
22
+ (categoryId: string): Promise<Category>;
23
+ }
24
+ export declare function updateCategory(httpClient: HttpClient): UpdateCategorySignature;
25
+ interface UpdateCategorySignature {
26
+ /**
27
+ * Updates a Category.
28
+ *
29
+ * Each time the Category is updated, `revision` increments by 1.
30
+ * The current `revision` must be passed when updating the Category.
31
+ * This ensures you're working with the latest Category and prevents unintended overwrites.
32
+ * @param - Category ID.
33
+ * @returns Updated Category.
34
+ */
35
+ (_id: string | null, category: UpdateCategory): Promise<Category>;
36
+ }
37
+ export declare function deleteCategory(httpClient: HttpClient): DeleteCategorySignature;
38
+ interface DeleteCategorySignature {
39
+ /**
40
+ * Deletes a Category.
41
+ * Deleting a Category permanently removes them from the Category List.
42
+ * @param - Id of the Category to delete.
43
+ */
44
+ (categoryId: string): Promise<void>;
45
+ }
46
+ export declare function listCategories(httpClient: HttpClient): ListCategoriesSignature;
47
+ interface ListCategoriesSignature {
48
+ /**
49
+ * Retrieves categories.
50
+ */
51
+ (options?: ListCategoriesOptions | undefined): Promise<ListCategoriesResponse>;
52
+ }
53
+ export declare function queryCategories(httpClient: HttpClient): QueryCategoriesSignature;
54
+ interface QueryCategoriesSignature {
55
+ /**
56
+ * Retrieves a list of Categories, given the provided [paging, filtering, and sorting].
57
+ */
58
+ (): CategoriesQueryBuilder;
59
+ }
60
+ export declare function updateExtendedFields(httpClient: HttpClient): UpdateExtendedFieldsSignature;
61
+ interface UpdateExtendedFieldsSignature {
62
+ /**
63
+ * Updates extended fields of a Category without incrementing revision
64
+ * @param - ID of the entity to update.
65
+ * @param - Identifier for the app whose extended fields are being updated.
66
+ */
67
+ (_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse>;
68
+ }
69
+ export declare const onCategoryCreated: EventDefinition<CategoryCreatedEnvelope, "wix.faq.category.v2.category_created">;
70
+ export declare const onCategoryDeleted: EventDefinition<CategoryDeletedEnvelope, "wix.faq.category.v2.category_deleted">;
71
+ export declare const onCategoryUpdated: EventDefinition<CategoryUpdatedEnvelope, "wix.faq.category.v2.category_updated">;
72
+ export { ActionEvent, BaseEventMetadata, CategoriesQueryBuilder, CategoriesQueryResult, Category, CategoryCreatedEnvelope, CategoryDeletedEnvelope, CategoryUpdatedEnvelope, CreateCategoryRequest, CreateCategoryResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteCategoryRequest, DeleteCategoryResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetCategoryRequest, GetCategoryResponse, IdentificationData, IdentificationDataIdOneOf, ListCategoriesOptions, ListCategoriesRequest, ListCategoriesResponse, MessageEnvelope, PagingMetadataV2, QueryCategoriesRequest, QueryCategoriesResponse, RestoreInfo, SortOrder, Sorting, UpdateCategory, UpdateCategoryRequest, UpdateCategoryResponse, UpdateExtendedFieldsOptions, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse, WebhookIdentityType, } from './faq-category-v2-category-category.universal.js';
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebhookIdentityType = exports.SortOrder = exports.onCategoryUpdated = exports.onCategoryDeleted = exports.onCategoryCreated = exports.updateExtendedFields = exports.queryCategories = exports.listCategories = exports.deleteCategory = exports.updateCategory = exports.getCategory = exports.createCategory = exports.__metadata = void 0;
4
+ const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
5
+ const float_1 = require("@wix/sdk-runtime/transformations/float");
6
+ const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
7
+ const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
8
+ const sdk_types_1 = require("@wix/sdk-types");
9
+ const faq_category_v2_category_category_universal_js_1 = require("./faq-category-v2-category-category.universal.js");
10
+ exports.__metadata = { PACKAGE_NAME: '@wix/faq' };
11
+ function createCategory(httpClient) {
12
+ return (category) => (0, faq_category_v2_category_category_universal_js_1.createCategory)(category,
13
+ // @ts-ignore
14
+ { httpClient });
15
+ }
16
+ exports.createCategory = createCategory;
17
+ function getCategory(httpClient) {
18
+ return (categoryId) => (0, faq_category_v2_category_category_universal_js_1.getCategory)(categoryId,
19
+ // @ts-ignore
20
+ { httpClient });
21
+ }
22
+ exports.getCategory = getCategory;
23
+ function updateCategory(httpClient) {
24
+ return (_id, category) => (0, faq_category_v2_category_category_universal_js_1.updateCategory)(_id, category,
25
+ // @ts-ignore
26
+ { httpClient });
27
+ }
28
+ exports.updateCategory = updateCategory;
29
+ function deleteCategory(httpClient) {
30
+ return (categoryId) => (0, faq_category_v2_category_category_universal_js_1.deleteCategory)(categoryId,
31
+ // @ts-ignore
32
+ { httpClient });
33
+ }
34
+ exports.deleteCategory = deleteCategory;
35
+ function listCategories(httpClient) {
36
+ return (options) => (0, faq_category_v2_category_category_universal_js_1.listCategories)(options,
37
+ // @ts-ignore
38
+ { httpClient });
39
+ }
40
+ exports.listCategories = listCategories;
41
+ function queryCategories(httpClient) {
42
+ return () => (0, faq_category_v2_category_category_universal_js_1.queryCategories)(
43
+ // @ts-ignore
44
+ { httpClient });
45
+ }
46
+ exports.queryCategories = queryCategories;
47
+ function updateExtendedFields(httpClient) {
48
+ return (_id, namespace, options) => (0, faq_category_v2_category_category_universal_js_1.updateExtendedFields)(_id, namespace, options,
49
+ // @ts-ignore
50
+ { httpClient });
51
+ }
52
+ exports.updateExtendedFields = updateExtendedFields;
53
+ exports.onCategoryCreated = (0, sdk_types_1.EventDefinition)('wix.faq.category.v2.category_created', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
54
+ {
55
+ transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
56
+ paths: [
57
+ { path: 'entity.createdDate' },
58
+ { path: 'entity.updatedDate' },
59
+ { path: 'metadata.eventTime' },
60
+ ],
61
+ },
62
+ {
63
+ transformFn: float_1.transformRESTFloatToSDKFloat,
64
+ paths: [{ path: 'entity.sortOrder' }],
65
+ },
66
+ ])))();
67
+ exports.onCategoryDeleted = (0, sdk_types_1.EventDefinition)('wix.faq.category.v2.category_deleted', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
68
+ {
69
+ transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
70
+ paths: [
71
+ { path: 'undefined.createdDate' },
72
+ { path: 'undefined.updatedDate' },
73
+ { path: 'metadata.eventTime' },
74
+ ],
75
+ },
76
+ {
77
+ transformFn: float_1.transformRESTFloatToSDKFloat,
78
+ paths: [{ path: 'undefined.sortOrder' }],
79
+ },
80
+ ])))();
81
+ exports.onCategoryUpdated = (0, sdk_types_1.EventDefinition)('wix.faq.category.v2.category_updated', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
82
+ {
83
+ transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
84
+ paths: [
85
+ { path: 'entity.createdDate' },
86
+ { path: 'entity.updatedDate' },
87
+ { path: 'metadata.eventTime' },
88
+ ],
89
+ },
90
+ {
91
+ transformFn: float_1.transformRESTFloatToSDKFloat,
92
+ paths: [{ path: 'entity.sortOrder' }],
93
+ },
94
+ ])))();
95
+ var faq_category_v2_category_category_universal_js_2 = require("./faq-category-v2-category-category.universal.js");
96
+ Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return faq_category_v2_category_category_universal_js_2.SortOrder; } });
97
+ Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return faq_category_v2_category_category_universal_js_2.WebhookIdentityType; } });
98
+ //# sourceMappingURL=faq-category-v2-category-category.public.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"faq-category-v2-category-category.public.js","sourceRoot":"","sources":["../../../../src/faq-category-v2-category-category.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG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AC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,gDAAoC;QACjD,KAAK,EAAE;YACL,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE;SAC/B;KACF;IACD;QACE,WAAW,EAAE,oCAA4B;QACzC,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;KACtC;CACF,CAAC,CACH,CACJ,EAA2B,CAAC;AAE7B,mHA8C0D;AATxD,2IAAA,SAAS,OAAA;AAQT,qJAAA,mBAAmB,OAAA"}
@@ -0,0 +1,302 @@
1
+ /**
2
+ * Categories are themed groupings of FAQ question entries that a site owner can create to organize their
3
+ * FAQ questions (e.g., Shipping, Returns, etc.).
4
+ */
5
+ export interface Category {
6
+ /**
7
+ * Category ID.
8
+ * @readonly
9
+ */
10
+ id?: string | null;
11
+ /**
12
+ * Revision number, which increments by 1 each time the Category is updated.
13
+ * To prevent conflicting changes,
14
+ * the current revision must be passed when updating the Category.
15
+ *
16
+ * Ignored when creating a Category.
17
+ * @readonly
18
+ */
19
+ revision?: string | null;
20
+ /**
21
+ * Date and time the Category was created.
22
+ * @readonly
23
+ */
24
+ createdDate?: Date | null;
25
+ /**
26
+ * Date and time the Category was last updated.
27
+ * @readonly
28
+ */
29
+ updatedDate?: Date | null;
30
+ /** Category title. */
31
+ title?: string | null;
32
+ /** Order of category within a site. */
33
+ sortOrder?: number | null;
34
+ /** Data Extensions */
35
+ extendedFields?: ExtendedFields;
36
+ }
37
+ export interface ExtendedFields {
38
+ /**
39
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
40
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
41
+ *
42
+ * You can only access fields for which you have the appropriate permissions.
43
+ *
44
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
45
+ */
46
+ namespaces?: Record<string, Record<string, any>>;
47
+ }
48
+ export interface CreateCategoryRequest {
49
+ /** Category to be created. */
50
+ category: Category;
51
+ }
52
+ export interface CreateCategoryResponse {
53
+ /** The created Category. */
54
+ category?: Category;
55
+ }
56
+ export interface GetCategoryRequest {
57
+ /** ID of the Category to retrieve. */
58
+ categoryId: string;
59
+ }
60
+ export interface GetCategoryResponse {
61
+ /** The requested Category. */
62
+ category?: Category;
63
+ }
64
+ export interface UpdateCategoryRequest {
65
+ /** Category to be updated, may be partial. */
66
+ category: Category;
67
+ }
68
+ export interface UpdateCategoryResponse {
69
+ /** Updated Category. */
70
+ category?: Category;
71
+ }
72
+ export interface DeleteCategoryRequest {
73
+ /** Id of the Category to delete. */
74
+ categoryId: string;
75
+ }
76
+ export interface DeleteCategoryResponse {
77
+ }
78
+ export interface ListCategoriesRequest {
79
+ /** Request more categories using cursor paging. */
80
+ paging?: CursorPaging;
81
+ }
82
+ export interface CursorPaging {
83
+ /** Maximum number of items to return in the results. */
84
+ limit?: number | null;
85
+ /**
86
+ * Pointer to the next or previous page in the list of results.
87
+ *
88
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
89
+ * Not relevant for the first request.
90
+ */
91
+ cursor?: string | null;
92
+ }
93
+ export interface ListCategoriesResponse {
94
+ /** List of Categories. */
95
+ categories?: Category[];
96
+ /** Paging metadata */
97
+ pagingMetadata?: PagingMetadataV2;
98
+ }
99
+ export interface PagingMetadataV2 {
100
+ /** Number of items returned in the response. */
101
+ count?: number | null;
102
+ /** Offset that was requested. */
103
+ offset?: number | null;
104
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
105
+ total?: number | null;
106
+ /** Flag that indicates the server failed to calculate the `total` field. */
107
+ tooManyToCount?: boolean | null;
108
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
109
+ cursors?: Cursors;
110
+ }
111
+ export interface Cursors {
112
+ /** Cursor string pointing to the next page in the list of results. */
113
+ next?: string | null;
114
+ /** Cursor pointing to the previous page in the list of results. */
115
+ prev?: string | null;
116
+ }
117
+ export interface QueryCategoriesRequest {
118
+ /** WQL expression. */
119
+ query?: CursorQuery;
120
+ }
121
+ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
122
+ /**
123
+ * Cursor paging options.
124
+ *
125
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
126
+ */
127
+ cursorPaging?: CursorPaging;
128
+ /**
129
+ * Filter object.
130
+ *
131
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
132
+ */
133
+ filter?: Record<string, any> | null;
134
+ /**
135
+ * Sort object.
136
+ *
137
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
138
+ */
139
+ sort?: Sorting[];
140
+ }
141
+ /** @oneof */
142
+ export interface CursorQueryPagingMethodOneOf {
143
+ /**
144
+ * Cursor paging options.
145
+ *
146
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
147
+ */
148
+ cursorPaging?: CursorPaging;
149
+ }
150
+ export interface Sorting {
151
+ /** Name of the field to sort by. */
152
+ fieldName?: string;
153
+ /** Sort order. */
154
+ order?: SortOrder;
155
+ }
156
+ export declare enum SortOrder {
157
+ ASC = "ASC",
158
+ DESC = "DESC"
159
+ }
160
+ export interface QueryCategoriesResponse {
161
+ /** List of Categories. */
162
+ categories?: Category[];
163
+ /** Paging metadata */
164
+ pagingMetadata?: CursorPagingMetadata;
165
+ }
166
+ export interface CursorPagingMetadata {
167
+ /** Number of items returned in current page. */
168
+ count?: number | null;
169
+ /** Cursor strings that point to the next page, previous page, or both. */
170
+ cursors?: Cursors;
171
+ /**
172
+ * Whether there are more pages to retrieve following the current page.
173
+ *
174
+ * + `true`: Another page of results can be retrieved.
175
+ * + `false`: This is the last page.
176
+ */
177
+ hasNext?: boolean | null;
178
+ }
179
+ export interface UpdateExtendedFieldsRequest {
180
+ /** ID of the entity to update. */
181
+ id: string;
182
+ /** Identifier for the app whose extended fields are being updated. */
183
+ namespace: string;
184
+ /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
185
+ namespaceData: Record<string, any> | null;
186
+ }
187
+ export interface UpdateExtendedFieldsResponse {
188
+ /** Updated Category. */
189
+ category?: Category;
190
+ }
191
+ export interface DomainEvent extends DomainEventBodyOneOf {
192
+ createdEvent?: EntityCreatedEvent;
193
+ updatedEvent?: EntityUpdatedEvent;
194
+ deletedEvent?: EntityDeletedEvent;
195
+ actionEvent?: ActionEvent;
196
+ /**
197
+ * Unique event ID.
198
+ * Allows clients to ignore duplicate webhooks.
199
+ */
200
+ id?: string;
201
+ /**
202
+ * Assumes actions are also always typed to an entity_type
203
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
204
+ */
205
+ entityFqdn?: string;
206
+ /**
207
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
208
+ * This is although the created/updated/deleted notion is duplication of the oneof types
209
+ * Example: created/updated/deleted/started/completed/email_opened
210
+ */
211
+ slug?: string;
212
+ /** ID of the entity associated with the event. */
213
+ entityId?: string;
214
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
215
+ eventTime?: Date | null;
216
+ /**
217
+ * Whether the event was triggered as a result of a privacy regulation application
218
+ * (for example, GDPR).
219
+ */
220
+ triggeredByAnonymizeRequest?: boolean | null;
221
+ /** If present, indicates the action that triggered the event. */
222
+ originatedFrom?: string | null;
223
+ /**
224
+ * A sequence number defining the order of updates to the underlying entity.
225
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
226
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
227
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
228
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
229
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
230
+ */
231
+ entityEventSequence?: string | null;
232
+ }
233
+ /** @oneof */
234
+ export interface DomainEventBodyOneOf {
235
+ createdEvent?: EntityCreatedEvent;
236
+ updatedEvent?: EntityUpdatedEvent;
237
+ deletedEvent?: EntityDeletedEvent;
238
+ actionEvent?: ActionEvent;
239
+ }
240
+ export interface EntityCreatedEvent {
241
+ entityAsJson?: string;
242
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
243
+ restoreInfo?: RestoreInfo;
244
+ }
245
+ export interface RestoreInfo {
246
+ deletedDate?: Date | null;
247
+ }
248
+ export interface EntityUpdatedEvent {
249
+ /**
250
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
251
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
252
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
253
+ */
254
+ currentEntityAsJson?: string;
255
+ }
256
+ export interface EntityDeletedEvent {
257
+ /** Entity that was deleted */
258
+ deletedEntityAsJson?: string | null;
259
+ }
260
+ export interface ActionEvent {
261
+ bodyAsJson?: string;
262
+ }
263
+ export interface MessageEnvelope {
264
+ /** App instance ID. */
265
+ instanceId?: string | null;
266
+ /** Event type. */
267
+ eventType?: string;
268
+ /** The identification type and identity data. */
269
+ identity?: IdentificationData;
270
+ /** Stringify payload. */
271
+ data?: string;
272
+ }
273
+ export interface IdentificationData extends IdentificationDataIdOneOf {
274
+ /** ID of a site visitor that has not logged in to the site. */
275
+ anonymousVisitorId?: string;
276
+ /** ID of a site visitor that has logged in to the site. */
277
+ memberId?: string;
278
+ /** ID of a Wix user (site owner, contributor, etc.). */
279
+ wixUserId?: string;
280
+ /** ID of an app. */
281
+ appId?: string;
282
+ /** @readonly */
283
+ identityType?: WebhookIdentityType;
284
+ }
285
+ /** @oneof */
286
+ export interface IdentificationDataIdOneOf {
287
+ /** ID of a site visitor that has not logged in to the site. */
288
+ anonymousVisitorId?: string;
289
+ /** ID of a site visitor that has logged in to the site. */
290
+ memberId?: string;
291
+ /** ID of a Wix user (site owner, contributor, etc.). */
292
+ wixUserId?: string;
293
+ /** ID of an app. */
294
+ appId?: string;
295
+ }
296
+ export declare enum WebhookIdentityType {
297
+ UNKNOWN = "UNKNOWN",
298
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
299
+ MEMBER = "MEMBER",
300
+ WIX_USER = "WIX_USER",
301
+ APP = "APP"
302
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebhookIdentityType = exports.SortOrder = void 0;
4
+ var SortOrder;
5
+ (function (SortOrder) {
6
+ SortOrder["ASC"] = "ASC";
7
+ SortOrder["DESC"] = "DESC";
8
+ })(SortOrder || (exports.SortOrder = SortOrder = {}));
9
+ var WebhookIdentityType;
10
+ (function (WebhookIdentityType) {
11
+ WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
12
+ WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
13
+ WebhookIdentityType["MEMBER"] = "MEMBER";
14
+ WebhookIdentityType["WIX_USER"] = "WIX_USER";
15
+ WebhookIdentityType["APP"] = "APP";
16
+ })(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
17
+ //# sourceMappingURL=faq-category-v2-category-category.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"faq-category-v2-category-category.types.js","sourceRoot":"","sources":["../../../../src/faq-category-v2-category-category.types.ts"],"names":[],"mappings":";;;AA6KA,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAwJD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}