@wix/auto_sdk_groups_membership-questions 1.0.17 → 1.0.19

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.
@@ -11,7 +11,7 @@ interface ListMembershipQuestionsSignature {
11
11
  * >This endpoint requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
12
12
  * @param - Group ID.
13
13
  */
14
- (groupId: string): Promise<NonNullablePaths<ListMembershipQuestionsResponse, `questions` | `questions.${number}.required` | `questions.${number}.text`, 4>>;
14
+ (groupId: string): Promise<NonNullablePaths<ListMembershipQuestionsResponse, `questions` | `questions.${number}.required` | `questions.${number}.text`, 2>>;
15
15
  }
16
16
  declare function createOrReplaceAllMembershipQuestions$1(httpClient: HttpClient): CreateOrReplaceAllMembershipQuestionsSignature;
17
17
  interface CreateOrReplaceAllMembershipQuestionsSignature {
@@ -25,7 +25,7 @@ interface CreateOrReplaceAllMembershipQuestionsSignature {
25
25
  * >This endpoint requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
26
26
  * @param - Group ID.
27
27
  */
28
- (groupId: string, options?: CreateOrReplaceAllMembershipQuestionsOptions): Promise<NonNullablePaths<CreateOrReplaceAllMembershipQuestionsResponse, `questions` | `questions.${number}.required` | `questions.${number}.text`, 4>>;
28
+ (groupId: string, options?: CreateOrReplaceAllMembershipQuestionsOptions): Promise<NonNullablePaths<CreateOrReplaceAllMembershipQuestionsResponse, `questions` | `questions.${number}.required` | `questions.${number}.text`, 2>>;
29
29
  }
30
30
  declare function listAnswers$1(httpClient: HttpClient): ListAnswersSignature;
31
31
  interface ListAnswersSignature {
@@ -36,7 +36,7 @@ interface ListAnswersSignature {
36
36
  * >This endpoint requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
37
37
  * @param - Group ID.
38
38
  */
39
- (groupId: string, options?: ListAnswersOptions): Promise<NonNullablePaths<ListAnswersResponse, `memberAnswers` | `memberAnswers.${number}.memberId`, 4>>;
39
+ (groupId: string, options?: ListAnswersOptions): Promise<NonNullablePaths<ListAnswersResponse, `memberAnswers` | `memberAnswers.${number}.memberId`, 2>>;
40
40
  }
41
41
 
42
42
  declare const listMembershipQuestions: MaybeContext<BuildRESTFunction<typeof listMembershipQuestions$1> & typeof listMembershipQuestions$1>;
@@ -141,7 +141,7 @@ interface MemberAnswerCount {
141
141
  * @requiredField groupId
142
142
  * @fqn wix.social.groups.api.v2.MembershipQuestionsService.ListMembershipQuestions
143
143
  */
144
- declare function listMembershipQuestions(groupId: string): Promise<NonNullablePaths<ListMembershipQuestionsResponse, `questions` | `questions.${number}.required` | `questions.${number}.text`, 4>>;
144
+ declare function listMembershipQuestions(groupId: string): Promise<NonNullablePaths<ListMembershipQuestionsResponse, `questions` | `questions.${number}.required` | `questions.${number}.text`, 2>>;
145
145
  /**
146
146
  * Creates membership questions if none have been set up. Otherwise, replaces all existing questions.
147
147
  *
@@ -155,7 +155,7 @@ declare function listMembershipQuestions(groupId: string): Promise<NonNullablePa
155
155
  * @requiredField groupId
156
156
  * @fqn wix.social.groups.api.v2.MembershipQuestionsService.CreateOrReplaceAllMembershipQuestions
157
157
  */
158
- declare function createOrReplaceAllMembershipQuestions(groupId: string, options?: CreateOrReplaceAllMembershipQuestionsOptions): Promise<NonNullablePaths<CreateOrReplaceAllMembershipQuestionsResponse, `questions` | `questions.${number}.required` | `questions.${number}.text`, 4>>;
158
+ declare function createOrReplaceAllMembershipQuestions(groupId: string, options?: CreateOrReplaceAllMembershipQuestionsOptions): Promise<NonNullablePaths<CreateOrReplaceAllMembershipQuestionsResponse, `questions` | `questions.${number}.required` | `questions.${number}.text`, 2>>;
159
159
  interface CreateOrReplaceAllMembershipQuestionsOptions {
160
160
  /**
161
161
  * New membership questions.
@@ -173,7 +173,7 @@ interface CreateOrReplaceAllMembershipQuestionsOptions {
173
173
  * @requiredField groupId
174
174
  * @fqn wix.social.groups.api.v2.MembershipQuestionsService.ListAnswers
175
175
  */
176
- declare function listAnswers(groupId: string, options?: ListAnswersOptions): Promise<NonNullablePaths<ListAnswersResponse, `memberAnswers` | `memberAnswers.${number}.memberId`, 4>>;
176
+ declare function listAnswers(groupId: string, options?: ListAnswersOptions): Promise<NonNullablePaths<ListAnswersResponse, `memberAnswers` | `memberAnswers.${number}.memberId`, 2>>;
177
177
  interface ListAnswersOptions {
178
178
  /**
179
179
  * Member IDs. If no member ID is provided, answers for all members will be returned. See the Members API for more details.
@@ -11,7 +11,7 @@ interface ListMembershipQuestionsSignature {
11
11
  * >This endpoint requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
12
12
  * @param - Group ID.
13
13
  */
14
- (groupId: string): Promise<NonNullablePaths<ListMembershipQuestionsResponse, `questions` | `questions.${number}.required` | `questions.${number}.text`, 4>>;
14
+ (groupId: string): Promise<NonNullablePaths<ListMembershipQuestionsResponse, `questions` | `questions.${number}.required` | `questions.${number}.text`, 2>>;
15
15
  }
16
16
  declare function createOrReplaceAllMembershipQuestions$1(httpClient: HttpClient): CreateOrReplaceAllMembershipQuestionsSignature;
17
17
  interface CreateOrReplaceAllMembershipQuestionsSignature {
@@ -25,7 +25,7 @@ interface CreateOrReplaceAllMembershipQuestionsSignature {
25
25
  * >This endpoint requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
26
26
  * @param - Group ID.
27
27
  */
28
- (groupId: string, options?: CreateOrReplaceAllMembershipQuestionsOptions): Promise<NonNullablePaths<CreateOrReplaceAllMembershipQuestionsResponse, `questions` | `questions.${number}.required` | `questions.${number}.text`, 4>>;
28
+ (groupId: string, options?: CreateOrReplaceAllMembershipQuestionsOptions): Promise<NonNullablePaths<CreateOrReplaceAllMembershipQuestionsResponse, `questions` | `questions.${number}.required` | `questions.${number}.text`, 2>>;
29
29
  }
30
30
  declare function listAnswers$1(httpClient: HttpClient): ListAnswersSignature;
31
31
  interface ListAnswersSignature {
@@ -36,7 +36,7 @@ interface ListAnswersSignature {
36
36
  * >This endpoint requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
37
37
  * @param - Group ID.
38
38
  */
39
- (groupId: string, options?: ListAnswersOptions): Promise<NonNullablePaths<ListAnswersResponse, `memberAnswers` | `memberAnswers.${number}.memberId`, 4>>;
39
+ (groupId: string, options?: ListAnswersOptions): Promise<NonNullablePaths<ListAnswersResponse, `memberAnswers` | `memberAnswers.${number}.memberId`, 2>>;
40
40
  }
41
41
 
42
42
  declare const listMembershipQuestions: MaybeContext<BuildRESTFunction<typeof listMembershipQuestions$1> & typeof listMembershipQuestions$1>;
@@ -141,7 +141,7 @@ interface MemberAnswerCount {
141
141
  * @requiredField groupId
142
142
  * @fqn wix.social.groups.api.v2.MembershipQuestionsService.ListMembershipQuestions
143
143
  */
144
- declare function listMembershipQuestions(groupId: string): Promise<NonNullablePaths<ListMembershipQuestionsResponse, `questions` | `questions.${number}.required` | `questions.${number}.text`, 4>>;
144
+ declare function listMembershipQuestions(groupId: string): Promise<NonNullablePaths<ListMembershipQuestionsResponse, `questions` | `questions.${number}.required` | `questions.${number}.text`, 2>>;
145
145
  /**
146
146
  * Creates membership questions if none have been set up. Otherwise, replaces all existing questions.
147
147
  *
@@ -155,7 +155,7 @@ declare function listMembershipQuestions(groupId: string): Promise<NonNullablePa
155
155
  * @requiredField groupId
156
156
  * @fqn wix.social.groups.api.v2.MembershipQuestionsService.CreateOrReplaceAllMembershipQuestions
157
157
  */
158
- declare function createOrReplaceAllMembershipQuestions(groupId: string, options?: CreateOrReplaceAllMembershipQuestionsOptions): Promise<NonNullablePaths<CreateOrReplaceAllMembershipQuestionsResponse, `questions` | `questions.${number}.required` | `questions.${number}.text`, 4>>;
158
+ declare function createOrReplaceAllMembershipQuestions(groupId: string, options?: CreateOrReplaceAllMembershipQuestionsOptions): Promise<NonNullablePaths<CreateOrReplaceAllMembershipQuestionsResponse, `questions` | `questions.${number}.required` | `questions.${number}.text`, 2>>;
159
159
  interface CreateOrReplaceAllMembershipQuestionsOptions {
160
160
  /**
161
161
  * New membership questions.
@@ -173,7 +173,7 @@ interface CreateOrReplaceAllMembershipQuestionsOptions {
173
173
  * @requiredField groupId
174
174
  * @fqn wix.social.groups.api.v2.MembershipQuestionsService.ListAnswers
175
175
  */
176
- declare function listAnswers(groupId: string, options?: ListAnswersOptions): Promise<NonNullablePaths<ListAnswersResponse, `memberAnswers` | `memberAnswers.${number}.memberId`, 4>>;
176
+ declare function listAnswers(groupId: string, options?: ListAnswersOptions): Promise<NonNullablePaths<ListAnswersResponse, `memberAnswers` | `memberAnswers.${number}.memberId`, 2>>;
177
177
  interface ListAnswersOptions {
178
178
  /**
179
179
  * Member IDs. If no member ID is provided, answers for all members will be returned. See the Members API for more details.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_groups_membership-questions",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -21,23 +21,16 @@
21
21
  "import": "./build/es/meta.mjs",
22
22
  "require": "./build/cjs/meta.js",
23
23
  "types": "./build/es/meta.d.mts"
24
- },
25
- "./schemas": {
26
- "import": "./build/es/schemas.mjs",
27
- "require": "./build/cjs/schemas.js",
28
- "types": "./build/es/schemas.d.mts"
29
24
  }
30
25
  },
31
26
  "files": [
32
27
  "build",
33
28
  "meta",
34
- "service-plugins",
35
- "schemas"
29
+ "service-plugins"
36
30
  ],
37
31
  "dependencies": {
38
32
  "@wix/sdk-runtime": "^1.0.24",
39
- "@wix/sdk-types": "^1.17.11",
40
- "zod": "^4.3.6"
33
+ "@wix/sdk-types": "^1.17.11"
41
34
  },
42
35
  "devDependencies": {
43
36
  "tsup": "^8.4.0",
@@ -57,5 +50,5 @@
57
50
  "fqdn": "wix.social_groups.v2.membership_question"
58
51
  }
59
52
  },
60
- "falconPackageHash": "0dd7e0b4f7949476590d74f6af4a0f705681e564115e7228fc858236"
53
+ "falconPackageHash": "8bcf0d76c2f2127b3350fd5cde6f241e90309296f187b01ce7474dab"
61
54
  }
@@ -1,61 +0,0 @@
1
- import * as z from 'zod';
2
-
3
- declare const ListMembershipQuestionsRequest: z.ZodObject<{
4
- groupId: z.ZodString;
5
- }, z.core.$strip>;
6
- declare const ListMembershipQuestionsResponse: z.ZodObject<{
7
- questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
8
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9
- required: z.ZodOptional<z.ZodBoolean>;
10
- text: z.ZodOptional<z.ZodString>;
11
- }, z.core.$strip>>>;
12
- }, z.core.$strip>;
13
- declare const CreateOrReplaceAllMembershipQuestionsRequest: z.ZodObject<{
14
- groupId: z.ZodString;
15
- options: z.ZodOptional<z.ZodObject<{
16
- questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
17
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
18
- required: z.ZodOptional<z.ZodBoolean>;
19
- text: z.ZodOptional<z.ZodString>;
20
- }, z.core.$strip>>>;
21
- }, z.core.$strip>>;
22
- }, z.core.$strip>;
23
- declare const CreateOrReplaceAllMembershipQuestionsResponse: z.ZodObject<{
24
- questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
25
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
26
- required: z.ZodOptional<z.ZodBoolean>;
27
- text: z.ZodOptional<z.ZodString>;
28
- }, z.core.$strip>>>;
29
- }, z.core.$strip>;
30
- declare const ListAnswersRequest: z.ZodObject<{
31
- groupId: z.ZodString;
32
- options: z.ZodOptional<z.ZodObject<{
33
- memberIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
34
- paging: z.ZodOptional<z.ZodObject<{
35
- limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
36
- offset: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
37
- }, z.core.$strip>>;
38
- }, z.core.$strip>>;
39
- }, z.core.$strip>;
40
- declare const ListAnswersResponse: z.ZodObject<{
41
- memberAnswers: z.ZodOptional<z.ZodArray<z.ZodObject<{
42
- memberId: z.ZodOptional<z.ZodString>;
43
- answers: z.ZodOptional<z.ZodArray<z.ZodObject<{
44
- _id: z.ZodOptional<z.ZodString>;
45
- text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
46
- }, z.core.$strip>>>;
47
- }, z.core.$strip>>>;
48
- questions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
49
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
50
- required: z.ZodOptional<z.ZodBoolean>;
51
- text: z.ZodOptional<z.ZodString>;
52
- }, z.core.$strip>>>;
53
- metadata: z.ZodOptional<z.ZodObject<{
54
- count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
55
- offset: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
56
- total: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
57
- tooManyToCount: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
58
- }, z.core.$strip>>;
59
- }, z.core.$strip>;
60
-
61
- export { CreateOrReplaceAllMembershipQuestionsRequest, CreateOrReplaceAllMembershipQuestionsResponse, ListAnswersRequest, ListAnswersResponse, ListMembershipQuestionsRequest, ListMembershipQuestionsResponse };
@@ -1,162 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // schemas.ts
31
- var schemas_exports = {};
32
- __export(schemas_exports, {
33
- CreateOrReplaceAllMembershipQuestionsRequest: () => CreateOrReplaceAllMembershipQuestionsRequest,
34
- CreateOrReplaceAllMembershipQuestionsResponse: () => CreateOrReplaceAllMembershipQuestionsResponse,
35
- ListAnswersRequest: () => ListAnswersRequest,
36
- ListAnswersResponse: () => ListAnswersResponse,
37
- ListMembershipQuestionsRequest: () => ListMembershipQuestionsRequest,
38
- ListMembershipQuestionsResponse: () => ListMembershipQuestionsResponse
39
- });
40
- module.exports = __toCommonJS(schemas_exports);
41
-
42
- // src/social-groups-v2-membership-question-membership-questions.schemas.ts
43
- var z = __toESM(require("zod"));
44
- var ListMembershipQuestionsRequest = /* @__PURE__ */ z.object({
45
- groupId: /* @__PURE__ */ z.string().describe("Group ID.").regex(
46
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
47
- "Must be a valid GUID"
48
- )
49
- });
50
- var ListMembershipQuestionsResponse = /* @__PURE__ */ z.object({
51
- questions: /* @__PURE__ */ z.array(
52
- /* @__PURE__ */ z.object({
53
- _id: /* @__PURE__ */ z.string().describe("Question ID.").regex(
54
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
55
- "Must be a valid GUID"
56
- ).optional().nullable(),
57
- required: /* @__PURE__ */ z.boolean().describe(
58
- "Whether a member must answer this question when joining the group."
59
- ).optional(),
60
- text: /* @__PURE__ */ z.string().describe("Question text.").min(1).max(300).optional()
61
- })
62
- ).optional()
63
- });
64
- var CreateOrReplaceAllMembershipQuestionsRequest = /* @__PURE__ */ z.object({
65
- groupId: /* @__PURE__ */ z.string().describe("Group ID.").regex(
66
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
67
- "Must be a valid GUID"
68
- ),
69
- options: /* @__PURE__ */ z.object({
70
- questions: /* @__PURE__ */ z.array(
71
- /* @__PURE__ */ z.object({
72
- _id: /* @__PURE__ */ z.string().describe("Question ID.").regex(
73
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
74
- "Must be a valid GUID"
75
- ).optional().nullable(),
76
- required: /* @__PURE__ */ z.boolean().describe(
77
- "Whether a member must answer this question when joining the group."
78
- ).optional(),
79
- text: /* @__PURE__ */ z.string().describe("Question text.").min(1).max(300).optional()
80
- })
81
- ).max(50).optional()
82
- }).optional()
83
- });
84
- var CreateOrReplaceAllMembershipQuestionsResponse = /* @__PURE__ */ z.object({
85
- questions: /* @__PURE__ */ z.array(
86
- /* @__PURE__ */ z.object({
87
- _id: /* @__PURE__ */ z.string().describe("Question ID.").regex(
88
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
89
- "Must be a valid GUID"
90
- ).optional().nullable(),
91
- required: /* @__PURE__ */ z.boolean().describe(
92
- "Whether a member must answer this question when joining the group."
93
- ).optional(),
94
- text: /* @__PURE__ */ z.string().describe("Question text.").min(1).max(300).optional()
95
- })
96
- ).optional()
97
- });
98
- var ListAnswersRequest = /* @__PURE__ */ z.object({
99
- groupId: /* @__PURE__ */ z.string().describe("Group ID.").regex(
100
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
101
- "Must be a valid GUID"
102
- ),
103
- options: /* @__PURE__ */ z.object({
104
- memberIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(500).optional(),
105
- paging: /* @__PURE__ */ z.object({
106
- limit: /* @__PURE__ */ z.number().int().describe("Number of items to load.").min(0).optional().nullable(),
107
- offset: /* @__PURE__ */ z.number().int().describe("Number of items to skip in the current sort order.").min(0).optional().nullable()
108
- }).optional()
109
- }).optional()
110
- });
111
- var ListAnswersResponse = /* @__PURE__ */ z.object({
112
- memberAnswers: /* @__PURE__ */ z.array(
113
- /* @__PURE__ */ z.object({
114
- memberId: /* @__PURE__ */ z.string().describe("Member ID. See the Members API for more details.").regex(
115
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
116
- "Must be a valid GUID"
117
- ).optional(),
118
- answers: /* @__PURE__ */ z.array(
119
- /* @__PURE__ */ z.object({
120
- _id: /* @__PURE__ */ z.string().describe("Question ID.").regex(
121
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
122
- "Must be a valid GUID"
123
- ).optional(),
124
- text: /* @__PURE__ */ z.string().describe("Answer text.").min(0).max(300).optional().nullable()
125
- })
126
- ).optional()
127
- })
128
- ).optional(),
129
- questions: /* @__PURE__ */ z.record(
130
- /* @__PURE__ */ z.string(),
131
- /* @__PURE__ */ z.object({
132
- _id: /* @__PURE__ */ z.string().describe("Question ID.").regex(
133
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
134
- "Must be a valid GUID"
135
- ).optional().nullable(),
136
- required: /* @__PURE__ */ z.boolean().describe(
137
- "Whether a member must answer this question when joining the group."
138
- ).optional(),
139
- text: /* @__PURE__ */ z.string().describe("Question text.").min(1).max(300).optional()
140
- })
141
- ).describe(
142
- "Membership questions by question ID. Includes only questions that have been answered by the specified members."
143
- ).optional(),
144
- metadata: /* @__PURE__ */ z.object({
145
- count: /* @__PURE__ */ z.number().int().describe("Number of items returned in the response.").optional().nullable(),
146
- offset: /* @__PURE__ */ z.number().int().describe("Offset that was requested.").optional().nullable(),
147
- total: /* @__PURE__ */ z.number().int().describe("Total number of items that match the query.").optional().nullable(),
148
- tooManyToCount: /* @__PURE__ */ z.boolean().describe(
149
- "Flag that indicates the server failed to calculate the `total` field."
150
- ).optional().nullable()
151
- }).optional()
152
- });
153
- // Annotate the CommonJS export names for ESM import in node:
154
- 0 && (module.exports = {
155
- CreateOrReplaceAllMembershipQuestionsRequest,
156
- CreateOrReplaceAllMembershipQuestionsResponse,
157
- ListAnswersRequest,
158
- ListAnswersResponse,
159
- ListMembershipQuestionsRequest,
160
- ListMembershipQuestionsResponse
161
- });
162
- //# sourceMappingURL=schemas.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../schemas.ts","../../src/social-groups-v2-membership-question-membership-questions.schemas.ts"],"sourcesContent":["export * from './src/social-groups-v2-membership-question-membership-questions.schemas.js';\n","import * as z from 'zod';\n\nexport const ListMembershipQuestionsRequest = /*#__PURE__*/ z.object({\n groupId: /*#__PURE__*/ z\n .string()\n .describe('Group ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const ListMembershipQuestionsResponse = /*#__PURE__*/ z.object({\n questions: /*#__PURE__*/ z\n .array(\n /*#__PURE__*/ z.object({\n _id: /*#__PURE__*/ z\n .string()\n .describe('Question ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n required: /*#__PURE__*/ z\n .boolean()\n .describe(\n 'Whether a member must answer this question when joining the group.'\n )\n .optional(),\n text: /*#__PURE__*/ z\n .string()\n .describe('Question text.')\n .min(1)\n .max(300)\n .optional(),\n })\n )\n .optional(),\n});\nexport const CreateOrReplaceAllMembershipQuestionsRequest =\n /*#__PURE__*/ z.object({\n groupId: /*#__PURE__*/ z\n .string()\n .describe('Group ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n options: /*#__PURE__*/ z\n .object({\n questions: /*#__PURE__*/ z\n .array(\n /*#__PURE__*/ z.object({\n _id: /*#__PURE__*/ z\n .string()\n .describe('Question ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n required: /*#__PURE__*/ z\n .boolean()\n .describe(\n 'Whether a member must answer this question when joining the group.'\n )\n .optional(),\n text: /*#__PURE__*/ z\n .string()\n .describe('Question text.')\n .min(1)\n .max(300)\n .optional(),\n })\n )\n .max(50)\n .optional(),\n })\n .optional(),\n });\nexport const CreateOrReplaceAllMembershipQuestionsResponse =\n /*#__PURE__*/ z.object({\n questions: /*#__PURE__*/ z\n .array(\n /*#__PURE__*/ z.object({\n _id: /*#__PURE__*/ z\n .string()\n .describe('Question ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n required: /*#__PURE__*/ z\n .boolean()\n .describe(\n 'Whether a member must answer this question when joining the group.'\n )\n .optional(),\n text: /*#__PURE__*/ z\n .string()\n .describe('Question text.')\n .min(1)\n .max(300)\n .optional(),\n })\n )\n .optional(),\n });\nexport const ListAnswersRequest = /*#__PURE__*/ z.object({\n groupId: /*#__PURE__*/ z\n .string()\n .describe('Group ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n options: /*#__PURE__*/ z\n .object({\n memberIds: /*#__PURE__*/ z\n .array(/*#__PURE__*/ z.string())\n .max(500)\n .optional(),\n paging: /*#__PURE__*/ z\n .object({\n limit: /*#__PURE__*/ z\n .number()\n .int()\n .describe('Number of items to load.')\n .min(0)\n .optional()\n .nullable(),\n offset: /*#__PURE__*/ z\n .number()\n .int()\n .describe('Number of items to skip in the current sort order.')\n .min(0)\n .optional()\n .nullable(),\n })\n .optional(),\n })\n .optional(),\n});\nexport const ListAnswersResponse = /*#__PURE__*/ z.object({\n memberAnswers: /*#__PURE__*/ z\n .array(\n /*#__PURE__*/ z.object({\n memberId: /*#__PURE__*/ z\n .string()\n .describe('Member ID. See the Members API for more details.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n answers: /*#__PURE__*/ z\n .array(\n /*#__PURE__*/ z.object({\n _id: /*#__PURE__*/ z\n .string()\n .describe('Question ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n text: /*#__PURE__*/ z\n .string()\n .describe('Answer text.')\n .min(0)\n .max(300)\n .optional()\n .nullable(),\n })\n )\n .optional(),\n })\n )\n .optional(),\n questions: /*#__PURE__*/ z\n .record(\n /*#__PURE__*/ z.string(),\n /*#__PURE__*/ z.object({\n _id: /*#__PURE__*/ z\n .string()\n .describe('Question ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n required: /*#__PURE__*/ z\n .boolean()\n .describe(\n 'Whether a member must answer this question when joining the group.'\n )\n .optional(),\n text: /*#__PURE__*/ z\n .string()\n .describe('Question text.')\n .min(1)\n .max(300)\n .optional(),\n })\n )\n .describe(\n 'Membership questions by question ID. Includes only questions that have been answered by the specified members.'\n )\n .optional(),\n metadata: /*#__PURE__*/ z\n .object({\n count: /*#__PURE__*/ z\n .number()\n .int()\n .describe('Number of items returned in the response.')\n .optional()\n .nullable(),\n offset: /*#__PURE__*/ z\n .number()\n .int()\n .describe('Offset that was requested.')\n .optional()\n .nullable(),\n total: /*#__PURE__*/ z\n .number()\n .int()\n .describe('Total number of items that match the query.')\n .optional()\n .nullable(),\n tooManyToCount: /*#__PURE__*/ z\n .boolean()\n .describe(\n 'Flag that indicates the server failed to calculate the `total` field.'\n )\n .optional()\n .nullable(),\n })\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,iCAA+C,gBAAE,SAAO;AAAA,EACnE,SAAuB,gBACpB,SAAO,EACP,SAAS,WAAW,EACpB;AAAA,IACC;AAAA,IACA;AAAA,EACF;AACJ,CAAC;AACM,IAAM,kCAAgD,gBAAE,SAAO;AAAA,EACpE,WAAyB,gBACtB;AAAA,IACe,gBAAE,SAAO;AAAA,MAC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P,SAAS,cAAc,EACvB;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,MACZ,UAAwB,gBACrB,UAAQ,EACR;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,MACZ,MAAoB,gBACjB,SAAO,EACP,SAAS,gBAAgB,EACzB,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC;AAAA,IACC;AAAA,EACF,EACC,SAAS;AAAA,EACZ,UAAwB,gBACrB,SAAO;AAAA,IACN,OAAqB,gBAClB,SAAO,EACP,IAAI,EACJ,SAAS,2CAA2C,EACpD,SAAS,EACT,SAAS;AAAA,IACZ,QAAsB,gBACnB,SAAO,EACP,IAAI,EACJ,SAAS,4BAA4B,EACrC,SAAS,EACT,SAAS;AAAA,IACZ,OAAqB,gBAClB,SAAO,EACP,IAAI,EACJ,SAAS,6CAA6C,EACtD,SAAS,EACT,SAAS;AAAA,IACZ,gBAA8B,gBAC3B,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS;AACd,CAAC;","names":[]}
@@ -1,61 +0,0 @@
1
- import * as z from 'zod';
2
-
3
- declare const ListMembershipQuestionsRequest: z.ZodObject<{
4
- groupId: z.ZodString;
5
- }, z.core.$strip>;
6
- declare const ListMembershipQuestionsResponse: z.ZodObject<{
7
- questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
8
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9
- required: z.ZodOptional<z.ZodBoolean>;
10
- text: z.ZodOptional<z.ZodString>;
11
- }, z.core.$strip>>>;
12
- }, z.core.$strip>;
13
- declare const CreateOrReplaceAllMembershipQuestionsRequest: z.ZodObject<{
14
- groupId: z.ZodString;
15
- options: z.ZodOptional<z.ZodObject<{
16
- questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
17
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
18
- required: z.ZodOptional<z.ZodBoolean>;
19
- text: z.ZodOptional<z.ZodString>;
20
- }, z.core.$strip>>>;
21
- }, z.core.$strip>>;
22
- }, z.core.$strip>;
23
- declare const CreateOrReplaceAllMembershipQuestionsResponse: z.ZodObject<{
24
- questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
25
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
26
- required: z.ZodOptional<z.ZodBoolean>;
27
- text: z.ZodOptional<z.ZodString>;
28
- }, z.core.$strip>>>;
29
- }, z.core.$strip>;
30
- declare const ListAnswersRequest: z.ZodObject<{
31
- groupId: z.ZodString;
32
- options: z.ZodOptional<z.ZodObject<{
33
- memberIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
34
- paging: z.ZodOptional<z.ZodObject<{
35
- limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
36
- offset: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
37
- }, z.core.$strip>>;
38
- }, z.core.$strip>>;
39
- }, z.core.$strip>;
40
- declare const ListAnswersResponse: z.ZodObject<{
41
- memberAnswers: z.ZodOptional<z.ZodArray<z.ZodObject<{
42
- memberId: z.ZodOptional<z.ZodString>;
43
- answers: z.ZodOptional<z.ZodArray<z.ZodObject<{
44
- _id: z.ZodOptional<z.ZodString>;
45
- text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
46
- }, z.core.$strip>>>;
47
- }, z.core.$strip>>>;
48
- questions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
49
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
50
- required: z.ZodOptional<z.ZodBoolean>;
51
- text: z.ZodOptional<z.ZodString>;
52
- }, z.core.$strip>>>;
53
- metadata: z.ZodOptional<z.ZodObject<{
54
- count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
55
- offset: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
56
- total: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
57
- tooManyToCount: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
58
- }, z.core.$strip>>;
59
- }, z.core.$strip>;
60
-
61
- export { CreateOrReplaceAllMembershipQuestionsRequest, CreateOrReplaceAllMembershipQuestionsResponse, ListAnswersRequest, ListAnswersResponse, ListMembershipQuestionsRequest, ListMembershipQuestionsResponse };
@@ -1,120 +0,0 @@
1
- // src/social-groups-v2-membership-question-membership-questions.schemas.ts
2
- import * as z from "zod";
3
- var ListMembershipQuestionsRequest = /* @__PURE__ */ z.object({
4
- groupId: /* @__PURE__ */ z.string().describe("Group ID.").regex(
5
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
6
- "Must be a valid GUID"
7
- )
8
- });
9
- var ListMembershipQuestionsResponse = /* @__PURE__ */ z.object({
10
- questions: /* @__PURE__ */ z.array(
11
- /* @__PURE__ */ z.object({
12
- _id: /* @__PURE__ */ z.string().describe("Question ID.").regex(
13
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
14
- "Must be a valid GUID"
15
- ).optional().nullable(),
16
- required: /* @__PURE__ */ z.boolean().describe(
17
- "Whether a member must answer this question when joining the group."
18
- ).optional(),
19
- text: /* @__PURE__ */ z.string().describe("Question text.").min(1).max(300).optional()
20
- })
21
- ).optional()
22
- });
23
- var CreateOrReplaceAllMembershipQuestionsRequest = /* @__PURE__ */ z.object({
24
- groupId: /* @__PURE__ */ z.string().describe("Group ID.").regex(
25
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
26
- "Must be a valid GUID"
27
- ),
28
- options: /* @__PURE__ */ z.object({
29
- questions: /* @__PURE__ */ z.array(
30
- /* @__PURE__ */ z.object({
31
- _id: /* @__PURE__ */ z.string().describe("Question ID.").regex(
32
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
33
- "Must be a valid GUID"
34
- ).optional().nullable(),
35
- required: /* @__PURE__ */ z.boolean().describe(
36
- "Whether a member must answer this question when joining the group."
37
- ).optional(),
38
- text: /* @__PURE__ */ z.string().describe("Question text.").min(1).max(300).optional()
39
- })
40
- ).max(50).optional()
41
- }).optional()
42
- });
43
- var CreateOrReplaceAllMembershipQuestionsResponse = /* @__PURE__ */ z.object({
44
- questions: /* @__PURE__ */ z.array(
45
- /* @__PURE__ */ z.object({
46
- _id: /* @__PURE__ */ z.string().describe("Question ID.").regex(
47
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
48
- "Must be a valid GUID"
49
- ).optional().nullable(),
50
- required: /* @__PURE__ */ z.boolean().describe(
51
- "Whether a member must answer this question when joining the group."
52
- ).optional(),
53
- text: /* @__PURE__ */ z.string().describe("Question text.").min(1).max(300).optional()
54
- })
55
- ).optional()
56
- });
57
- var ListAnswersRequest = /* @__PURE__ */ z.object({
58
- groupId: /* @__PURE__ */ z.string().describe("Group ID.").regex(
59
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
60
- "Must be a valid GUID"
61
- ),
62
- options: /* @__PURE__ */ z.object({
63
- memberIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(500).optional(),
64
- paging: /* @__PURE__ */ z.object({
65
- limit: /* @__PURE__ */ z.number().int().describe("Number of items to load.").min(0).optional().nullable(),
66
- offset: /* @__PURE__ */ z.number().int().describe("Number of items to skip in the current sort order.").min(0).optional().nullable()
67
- }).optional()
68
- }).optional()
69
- });
70
- var ListAnswersResponse = /* @__PURE__ */ z.object({
71
- memberAnswers: /* @__PURE__ */ z.array(
72
- /* @__PURE__ */ z.object({
73
- memberId: /* @__PURE__ */ z.string().describe("Member ID. See the Members API for more details.").regex(
74
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
75
- "Must be a valid GUID"
76
- ).optional(),
77
- answers: /* @__PURE__ */ z.array(
78
- /* @__PURE__ */ z.object({
79
- _id: /* @__PURE__ */ z.string().describe("Question ID.").regex(
80
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
81
- "Must be a valid GUID"
82
- ).optional(),
83
- text: /* @__PURE__ */ z.string().describe("Answer text.").min(0).max(300).optional().nullable()
84
- })
85
- ).optional()
86
- })
87
- ).optional(),
88
- questions: /* @__PURE__ */ z.record(
89
- /* @__PURE__ */ z.string(),
90
- /* @__PURE__ */ z.object({
91
- _id: /* @__PURE__ */ z.string().describe("Question ID.").regex(
92
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
93
- "Must be a valid GUID"
94
- ).optional().nullable(),
95
- required: /* @__PURE__ */ z.boolean().describe(
96
- "Whether a member must answer this question when joining the group."
97
- ).optional(),
98
- text: /* @__PURE__ */ z.string().describe("Question text.").min(1).max(300).optional()
99
- })
100
- ).describe(
101
- "Membership questions by question ID. Includes only questions that have been answered by the specified members."
102
- ).optional(),
103
- metadata: /* @__PURE__ */ z.object({
104
- count: /* @__PURE__ */ z.number().int().describe("Number of items returned in the response.").optional().nullable(),
105
- offset: /* @__PURE__ */ z.number().int().describe("Offset that was requested.").optional().nullable(),
106
- total: /* @__PURE__ */ z.number().int().describe("Total number of items that match the query.").optional().nullable(),
107
- tooManyToCount: /* @__PURE__ */ z.boolean().describe(
108
- "Flag that indicates the server failed to calculate the `total` field."
109
- ).optional().nullable()
110
- }).optional()
111
- });
112
- export {
113
- CreateOrReplaceAllMembershipQuestionsRequest,
114
- CreateOrReplaceAllMembershipQuestionsResponse,
115
- ListAnswersRequest,
116
- ListAnswersResponse,
117
- ListMembershipQuestionsRequest,
118
- ListMembershipQuestionsResponse
119
- };
120
- //# sourceMappingURL=schemas.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/social-groups-v2-membership-question-membership-questions.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const ListMembershipQuestionsRequest = /*#__PURE__*/ z.object({\n groupId: /*#__PURE__*/ z\n .string()\n .describe('Group ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const ListMembershipQuestionsResponse = /*#__PURE__*/ z.object({\n questions: /*#__PURE__*/ z\n .array(\n /*#__PURE__*/ z.object({\n _id: /*#__PURE__*/ z\n .string()\n .describe('Question ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n required: /*#__PURE__*/ z\n .boolean()\n .describe(\n 'Whether a member must answer this question when joining the group.'\n )\n .optional(),\n text: /*#__PURE__*/ z\n .string()\n .describe('Question text.')\n .min(1)\n .max(300)\n .optional(),\n })\n )\n .optional(),\n});\nexport const CreateOrReplaceAllMembershipQuestionsRequest =\n /*#__PURE__*/ z.object({\n groupId: /*#__PURE__*/ z\n .string()\n .describe('Group ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n options: /*#__PURE__*/ z\n .object({\n questions: /*#__PURE__*/ z\n .array(\n /*#__PURE__*/ z.object({\n _id: /*#__PURE__*/ z\n .string()\n .describe('Question ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n required: /*#__PURE__*/ z\n .boolean()\n .describe(\n 'Whether a member must answer this question when joining the group.'\n )\n .optional(),\n text: /*#__PURE__*/ z\n .string()\n .describe('Question text.')\n .min(1)\n .max(300)\n .optional(),\n })\n )\n .max(50)\n .optional(),\n })\n .optional(),\n });\nexport const CreateOrReplaceAllMembershipQuestionsResponse =\n /*#__PURE__*/ z.object({\n questions: /*#__PURE__*/ z\n .array(\n /*#__PURE__*/ z.object({\n _id: /*#__PURE__*/ z\n .string()\n .describe('Question ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n required: /*#__PURE__*/ z\n .boolean()\n .describe(\n 'Whether a member must answer this question when joining the group.'\n )\n .optional(),\n text: /*#__PURE__*/ z\n .string()\n .describe('Question text.')\n .min(1)\n .max(300)\n .optional(),\n })\n )\n .optional(),\n });\nexport const ListAnswersRequest = /*#__PURE__*/ z.object({\n groupId: /*#__PURE__*/ z\n .string()\n .describe('Group ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n options: /*#__PURE__*/ z\n .object({\n memberIds: /*#__PURE__*/ z\n .array(/*#__PURE__*/ z.string())\n .max(500)\n .optional(),\n paging: /*#__PURE__*/ z\n .object({\n limit: /*#__PURE__*/ z\n .number()\n .int()\n .describe('Number of items to load.')\n .min(0)\n .optional()\n .nullable(),\n offset: /*#__PURE__*/ z\n .number()\n .int()\n .describe('Number of items to skip in the current sort order.')\n .min(0)\n .optional()\n .nullable(),\n })\n .optional(),\n })\n .optional(),\n});\nexport const ListAnswersResponse = /*#__PURE__*/ z.object({\n memberAnswers: /*#__PURE__*/ z\n .array(\n /*#__PURE__*/ z.object({\n memberId: /*#__PURE__*/ z\n .string()\n .describe('Member ID. See the Members API for more details.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n answers: /*#__PURE__*/ z\n .array(\n /*#__PURE__*/ z.object({\n _id: /*#__PURE__*/ z\n .string()\n .describe('Question ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n text: /*#__PURE__*/ z\n .string()\n .describe('Answer text.')\n .min(0)\n .max(300)\n .optional()\n .nullable(),\n })\n )\n .optional(),\n })\n )\n .optional(),\n questions: /*#__PURE__*/ z\n .record(\n /*#__PURE__*/ z.string(),\n /*#__PURE__*/ z.object({\n _id: /*#__PURE__*/ z\n .string()\n .describe('Question ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n required: /*#__PURE__*/ z\n .boolean()\n .describe(\n 'Whether a member must answer this question when joining the group.'\n )\n .optional(),\n text: /*#__PURE__*/ z\n .string()\n .describe('Question text.')\n .min(1)\n .max(300)\n .optional(),\n })\n )\n .describe(\n 'Membership questions by question ID. Includes only questions that have been answered by the specified members.'\n )\n .optional(),\n metadata: /*#__PURE__*/ z\n .object({\n count: /*#__PURE__*/ z\n .number()\n .int()\n .describe('Number of items returned in the response.')\n .optional()\n .nullable(),\n offset: /*#__PURE__*/ z\n .number()\n .int()\n .describe('Offset that was requested.')\n .optional()\n .nullable(),\n total: /*#__PURE__*/ z\n .number()\n .int()\n .describe('Total number of items that match the query.')\n .optional()\n .nullable(),\n tooManyToCount: /*#__PURE__*/ z\n .boolean()\n .describe(\n 'Flag that indicates the server failed to calculate the `total` field.'\n )\n .optional()\n .nullable(),\n })\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,iCAA+C,gBAAE,SAAO;AAAA,EACnE,SAAuB,gBACpB,SAAO,EACP,SAAS,WAAW,EACpB;AAAA,IACC;AAAA,IACA;AAAA,EACF;AACJ,CAAC;AACM,IAAM,kCAAgD,gBAAE,SAAO;AAAA,EACpE,WAAyB,gBACtB;AAAA,IACe,gBAAE,SAAO;AAAA,MACrB,KAAmB,gBAChB,SAAO,EACP,SAAS,cAAc,EACvB;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,MACZ,UAAwB,gBACrB,UAAQ,EACR;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,MACZ,MAAoB,gBACjB,SAAO,EACP,SAAS,gBAAgB,EACzB,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,SAAS;AACd,CAAC;AACM,IAAM,+CACG,gBAAE,SAAO;AAAA,EACrB,SAAuB,gBACpB,SAAO,EACP,SAAS,WAAW,EACpB;AAAA,IACC;AAAA,IACA;AAAA,EACF;AAAA,EACF,SAAuB,gBACpB,SAAO;AAAA,IACN,WAAyB,gBACtB;AAAA,MACe,gBAAE,SAAO;AAAA,QACrB,KAAmB,gBAChB,SAAO,EACP,SAAS,cAAc,EACvB;AAAA,UACC;AAAA,UACA;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,QACZ,UAAwB,gBACrB,UAAQ,EACR;AAAA,UACC;AAAA,QACF,EACC,SAAS;AAAA,QACZ,MAAoB,gBACjB,SAAO,EACP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