@wix/auto_sdk_papyrus_templates 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 (52) hide show
  1. package/build/cjs/index.d.ts +38 -0
  2. package/build/cjs/index.js +620 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1102 -0
  5. package/build/cjs/index.typings.js +511 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +908 -0
  8. package/build/cjs/meta.js +374 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/schemas.d.ts +260 -0
  11. package/build/cjs/schemas.js +386 -0
  12. package/build/cjs/schemas.js.map +1 -0
  13. package/build/es/index.d.mts +38 -0
  14. package/build/es/index.mjs +586 -0
  15. package/build/es/index.mjs.map +1 -0
  16. package/build/es/index.typings.d.mts +1102 -0
  17. package/build/es/index.typings.mjs +478 -0
  18. package/build/es/index.typings.mjs.map +1 -0
  19. package/build/es/meta.d.mts +908 -0
  20. package/build/es/meta.mjs +340 -0
  21. package/build/es/meta.mjs.map +1 -0
  22. package/build/es/package.json +3 -0
  23. package/build/es/schemas.d.mts +260 -0
  24. package/build/es/schemas.mjs +344 -0
  25. package/build/es/schemas.mjs.map +1 -0
  26. package/build/internal/cjs/index.d.ts +38 -0
  27. package/build/internal/cjs/index.js +620 -0
  28. package/build/internal/cjs/index.js.map +1 -0
  29. package/build/internal/cjs/index.typings.d.ts +1102 -0
  30. package/build/internal/cjs/index.typings.js +511 -0
  31. package/build/internal/cjs/index.typings.js.map +1 -0
  32. package/build/internal/cjs/meta.d.ts +908 -0
  33. package/build/internal/cjs/meta.js +374 -0
  34. package/build/internal/cjs/meta.js.map +1 -0
  35. package/build/internal/cjs/schemas.d.ts +260 -0
  36. package/build/internal/cjs/schemas.js +386 -0
  37. package/build/internal/cjs/schemas.js.map +1 -0
  38. package/build/internal/es/index.d.mts +38 -0
  39. package/build/internal/es/index.mjs +586 -0
  40. package/build/internal/es/index.mjs.map +1 -0
  41. package/build/internal/es/index.typings.d.mts +1102 -0
  42. package/build/internal/es/index.typings.mjs +478 -0
  43. package/build/internal/es/index.typings.mjs.map +1 -0
  44. package/build/internal/es/meta.d.mts +908 -0
  45. package/build/internal/es/meta.mjs +340 -0
  46. package/build/internal/es/meta.mjs.map +1 -0
  47. package/build/internal/es/schemas.d.mts +260 -0
  48. package/build/internal/es/schemas.mjs +344 -0
  49. package/build/internal/es/schemas.mjs.map +1 -0
  50. package/meta/package.json +3 -0
  51. package/package.json +61 -0
  52. package/schemas/package.json +3 -0
@@ -0,0 +1,260 @@
1
+ import * as z from 'zod';
2
+
3
+ declare const UpsertTemplateSettingsRequest: z.ZodObject<{
4
+ options: z.ZodOptional<z.ZodObject<{
5
+ settings: z.ZodOptional<z.ZodObject<{
6
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7
+ appSlug: z.ZodString;
8
+ templateType: z.ZodString;
9
+ templateId: z.ZodString;
10
+ externalId: z.ZodString;
11
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
12
+ _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
13
+ settingGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
14
+ groupId: z.ZodOptional<z.ZodString>;
15
+ display: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
16
+ texts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
17
+ fontFamily: z.ZodNullable<z.ZodOptional<z.ZodString>>;
18
+ fontStyle: z.ZodOptional<z.ZodArray<z.ZodString>>;
19
+ textAlignment: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20
+ textColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
21
+ fontSize: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
22
+ textContent: z.ZodOptional<z.ZodArray<z.ZodObject<{
23
+ _id: z.ZodOptional<z.ZodString>;
24
+ value: z.ZodNullable<z.ZodOptional<z.ZodString>>;
25
+ visible: z.ZodOptional<z.ZodBoolean>;
26
+ }, z.core.$strip>>>;
27
+ }, z.core.$strip>>>;
28
+ images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
29
+ image: z.ZodOptional<z.ZodString>;
30
+ resize: z.ZodOptional<z.ZodEnum<{
31
+ FIT: "FIT";
32
+ CROP: "CROP";
33
+ }>>;
34
+ }, z.core.$strip>>>;
35
+ selects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
36
+ value: z.ZodNullable<z.ZodOptional<z.ZodString>>;
37
+ primaryColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
38
+ secondaryColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
39
+ size: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
40
+ }, z.core.$strip>>>;
41
+ backgrounds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
42
+ color: z.ZodNullable<z.ZodOptional<z.ZodString>>;
43
+ image: z.ZodOptional<z.ZodString>;
44
+ }, z.core.$strip>>>;
45
+ }, z.core.$strip>>>;
46
+ paperSize: z.ZodOptional<z.ZodEnum<{
47
+ A4_PORTRAIT: "A4_PORTRAIT";
48
+ A4_LANDSCAPE: "A4_LANDSCAPE";
49
+ }>>;
50
+ pageOverflow: z.ZodOptional<z.ZodEnum<{
51
+ CONTENT_HIDDEN: "CONTENT_HIDDEN";
52
+ CONTENT_BREAK: "CONTENT_BREAK";
53
+ }>>;
54
+ }, z.core.$strip>>;
55
+ }, z.core.$strip>>;
56
+ }, z.core.$strip>;
57
+ declare const UpsertTemplateSettingsResponse: z.ZodObject<{
58
+ settings: z.ZodOptional<z.ZodObject<{
59
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
60
+ appSlug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
61
+ templateType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
62
+ templateId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
63
+ externalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
64
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
65
+ _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
66
+ settingGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
67
+ groupId: z.ZodOptional<z.ZodString>;
68
+ display: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
69
+ texts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
70
+ fontFamily: z.ZodNullable<z.ZodOptional<z.ZodString>>;
71
+ fontStyle: z.ZodOptional<z.ZodArray<z.ZodString>>;
72
+ textAlignment: z.ZodNullable<z.ZodOptional<z.ZodString>>;
73
+ textColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
74
+ fontSize: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
75
+ textContent: z.ZodOptional<z.ZodArray<z.ZodObject<{
76
+ _id: z.ZodOptional<z.ZodString>;
77
+ value: z.ZodNullable<z.ZodOptional<z.ZodString>>;
78
+ visible: z.ZodOptional<z.ZodBoolean>;
79
+ }, z.core.$strip>>>;
80
+ }, z.core.$strip>>>;
81
+ images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
82
+ image: z.ZodOptional<z.ZodString>;
83
+ resize: z.ZodOptional<z.ZodEnum<{
84
+ FIT: "FIT";
85
+ CROP: "CROP";
86
+ }>>;
87
+ }, z.core.$strip>>>;
88
+ selects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
89
+ value: z.ZodNullable<z.ZodOptional<z.ZodString>>;
90
+ primaryColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
91
+ secondaryColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
92
+ size: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
93
+ }, z.core.$strip>>>;
94
+ backgrounds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
95
+ color: z.ZodNullable<z.ZodOptional<z.ZodString>>;
96
+ image: z.ZodOptional<z.ZodString>;
97
+ }, z.core.$strip>>>;
98
+ }, z.core.$strip>>>;
99
+ paperSize: z.ZodOptional<z.ZodEnum<{
100
+ A4_PORTRAIT: "A4_PORTRAIT";
101
+ A4_LANDSCAPE: "A4_LANDSCAPE";
102
+ }>>;
103
+ pageOverflow: z.ZodOptional<z.ZodEnum<{
104
+ CONTENT_HIDDEN: "CONTENT_HIDDEN";
105
+ CONTENT_BREAK: "CONTENT_BREAK";
106
+ }>>;
107
+ }, z.core.$strip>>;
108
+ }, z.core.$strip>;
109
+ declare const QueryTemplateSettingsRequest: z.ZodObject<{
110
+ query: z.ZodIntersection<z.ZodObject<{
111
+ filter: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
112
+ sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
113
+ fieldName: z.ZodOptional<z.ZodString>;
114
+ order: z.ZodOptional<z.ZodEnum<{
115
+ ASC: "ASC";
116
+ DESC: "DESC";
117
+ }>>;
118
+ }, z.core.$strip>>>;
119
+ }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
120
+ paging: z.ZodOptional<z.ZodNever>;
121
+ cursorPaging: z.ZodOptional<z.ZodNever>;
122
+ }, z.core.$strip>, z.ZodObject<{
123
+ cursorPaging: z.ZodOptional<z.ZodNever>;
124
+ paging: z.ZodObject<{
125
+ limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
126
+ offset: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
127
+ }, z.core.$strip>;
128
+ }, z.core.$strip>, z.ZodObject<{
129
+ paging: z.ZodOptional<z.ZodNever>;
130
+ cursorPaging: z.ZodObject<{
131
+ limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
132
+ cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
133
+ }, z.core.$strip>;
134
+ }, z.core.$strip>]>>;
135
+ }, z.core.$strip>;
136
+ declare const QueryTemplateSettingsResponse: z.ZodObject<{
137
+ settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
138
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
139
+ appSlug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
140
+ templateType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
141
+ templateId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
142
+ externalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
143
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
144
+ _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
145
+ settingGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
146
+ groupId: z.ZodOptional<z.ZodString>;
147
+ display: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
148
+ texts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
149
+ fontFamily: z.ZodNullable<z.ZodOptional<z.ZodString>>;
150
+ fontStyle: z.ZodOptional<z.ZodArray<z.ZodString>>;
151
+ textAlignment: z.ZodNullable<z.ZodOptional<z.ZodString>>;
152
+ textColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
153
+ fontSize: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
154
+ textContent: z.ZodOptional<z.ZodArray<z.ZodObject<{
155
+ _id: z.ZodOptional<z.ZodString>;
156
+ value: z.ZodNullable<z.ZodOptional<z.ZodString>>;
157
+ visible: z.ZodOptional<z.ZodBoolean>;
158
+ }, z.core.$strip>>>;
159
+ }, z.core.$strip>>>;
160
+ images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
161
+ image: z.ZodOptional<z.ZodString>;
162
+ resize: z.ZodOptional<z.ZodEnum<{
163
+ FIT: "FIT";
164
+ CROP: "CROP";
165
+ }>>;
166
+ }, z.core.$strip>>>;
167
+ selects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
168
+ value: z.ZodNullable<z.ZodOptional<z.ZodString>>;
169
+ primaryColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
170
+ secondaryColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
171
+ size: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
172
+ }, z.core.$strip>>>;
173
+ backgrounds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
174
+ color: z.ZodNullable<z.ZodOptional<z.ZodString>>;
175
+ image: z.ZodOptional<z.ZodString>;
176
+ }, z.core.$strip>>>;
177
+ }, z.core.$strip>>>;
178
+ paperSize: z.ZodOptional<z.ZodEnum<{
179
+ A4_PORTRAIT: "A4_PORTRAIT";
180
+ A4_LANDSCAPE: "A4_LANDSCAPE";
181
+ }>>;
182
+ pageOverflow: z.ZodOptional<z.ZodEnum<{
183
+ CONTENT_HIDDEN: "CONTENT_HIDDEN";
184
+ CONTENT_BREAK: "CONTENT_BREAK";
185
+ }>>;
186
+ }, z.core.$strip>>>;
187
+ metadata: z.ZodOptional<z.ZodObject<{
188
+ count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
189
+ offset: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
190
+ total: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
191
+ tooManyToCount: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
192
+ cursors: z.ZodOptional<z.ZodObject<{
193
+ next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
194
+ prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
195
+ }, z.core.$strip>>;
196
+ }, z.core.$strip>>;
197
+ }, z.core.$strip>;
198
+ declare const ResolveTemplateSettingsRequest: z.ZodObject<{
199
+ options: z.ZodObject<{
200
+ templateSettingsId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
201
+ templateSettingsExternalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
202
+ templateType: z.ZodString;
203
+ appSlug: z.ZodString;
204
+ templateId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
205
+ }, z.core.$strip>;
206
+ }, z.core.$strip>;
207
+ declare const ResolveTemplateSettingsResponse: z.ZodObject<{
208
+ settings: z.ZodOptional<z.ZodObject<{
209
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
210
+ appSlug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
211
+ templateType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
212
+ templateId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
213
+ externalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
214
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
215
+ _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
216
+ settingGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
217
+ groupId: z.ZodOptional<z.ZodString>;
218
+ display: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
219
+ texts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
220
+ fontFamily: z.ZodNullable<z.ZodOptional<z.ZodString>>;
221
+ fontStyle: z.ZodOptional<z.ZodArray<z.ZodString>>;
222
+ textAlignment: z.ZodNullable<z.ZodOptional<z.ZodString>>;
223
+ textColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
224
+ fontSize: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
225
+ textContent: z.ZodOptional<z.ZodArray<z.ZodObject<{
226
+ _id: z.ZodOptional<z.ZodString>;
227
+ value: z.ZodNullable<z.ZodOptional<z.ZodString>>;
228
+ visible: z.ZodOptional<z.ZodBoolean>;
229
+ }, z.core.$strip>>>;
230
+ }, z.core.$strip>>>;
231
+ images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
232
+ image: z.ZodOptional<z.ZodString>;
233
+ resize: z.ZodOptional<z.ZodEnum<{
234
+ FIT: "FIT";
235
+ CROP: "CROP";
236
+ }>>;
237
+ }, z.core.$strip>>>;
238
+ selects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
239
+ value: z.ZodNullable<z.ZodOptional<z.ZodString>>;
240
+ primaryColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
241
+ secondaryColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
242
+ size: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
243
+ }, z.core.$strip>>>;
244
+ backgrounds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
245
+ color: z.ZodNullable<z.ZodOptional<z.ZodString>>;
246
+ image: z.ZodOptional<z.ZodString>;
247
+ }, z.core.$strip>>>;
248
+ }, z.core.$strip>>>;
249
+ paperSize: z.ZodOptional<z.ZodEnum<{
250
+ A4_PORTRAIT: "A4_PORTRAIT";
251
+ A4_LANDSCAPE: "A4_LANDSCAPE";
252
+ }>>;
253
+ pageOverflow: z.ZodOptional<z.ZodEnum<{
254
+ CONTENT_HIDDEN: "CONTENT_HIDDEN";
255
+ CONTENT_BREAK: "CONTENT_BREAK";
256
+ }>>;
257
+ }, z.core.$strip>>;
258
+ }, z.core.$strip>;
259
+
260
+ export { QueryTemplateSettingsRequest, QueryTemplateSettingsResponse, ResolveTemplateSettingsRequest, ResolveTemplateSettingsResponse, UpsertTemplateSettingsRequest, UpsertTemplateSettingsResponse };
@@ -0,0 +1,386 @@
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
+ QueryTemplateSettingsRequest: () => QueryTemplateSettingsRequest,
34
+ QueryTemplateSettingsResponse: () => QueryTemplateSettingsResponse,
35
+ ResolveTemplateSettingsRequest: () => ResolveTemplateSettingsRequest,
36
+ ResolveTemplateSettingsResponse: () => ResolveTemplateSettingsResponse,
37
+ UpsertTemplateSettingsRequest: () => UpsertTemplateSettingsRequest,
38
+ UpsertTemplateSettingsResponse: () => UpsertTemplateSettingsResponse
39
+ });
40
+ module.exports = __toCommonJS(schemas_exports);
41
+
42
+ // src/papyrus-v1-template-settings-templates.schemas.ts
43
+ var z = __toESM(require("zod"));
44
+ var UpsertTemplateSettingsRequest = z.object({
45
+ options: z.object({
46
+ settings: z.object({
47
+ _id: z.string().describe("Auto generated ID.").regex(
48
+ /^[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}$/,
49
+ "Must be a valid GUID"
50
+ ).optional().nullable(),
51
+ appSlug: z.string().describe("Wix app definition ID.").min(1).max(20),
52
+ templateType: z.string().describe("The type of the template.").min(1).max(20),
53
+ templateId: z.string().describe("The id of the template.").min(1).max(20),
54
+ externalId: z.string().describe(
55
+ "Template settings external ID. For example ticket definition ID.\nMust be unique per tenant where tenant is taken from authorization (wix_app_id + meta_site_id)"
56
+ ).min(1).max(100),
57
+ _createdDate: z.date().describe("Date settings were created.").optional().nullable(),
58
+ _updatedDate: z.date().describe("Date settings were updated.").optional().nullable(),
59
+ settingGroups: z.array(
60
+ z.object({
61
+ groupId: z.string().describe("Id of the control group").min(5).max(50).optional(),
62
+ display: z.record(z.string(), z.boolean()).describe("Display settings.").optional(),
63
+ texts: z.record(
64
+ z.string(),
65
+ z.object({
66
+ fontFamily: z.string().describe("Font family class name").max(20).optional().nullable(),
67
+ fontStyle: z.array(z.string()).max(10).optional(),
68
+ textAlignment: z.string().describe("Text alignment class name").max(20).optional().nullable(),
69
+ textColor: z.string().describe("Text color hex code").min(7).max(7).optional().nullable(),
70
+ fontSize: z.number().int().describe("Font size").min(1).optional().nullable(),
71
+ textContent: z.array(
72
+ z.object({
73
+ _id: z.string().min(3).max(50).optional(),
74
+ value: z.string().max(500).optional().nullable(),
75
+ visible: z.boolean().optional()
76
+ })
77
+ ).optional()
78
+ })
79
+ ).describe("Texts settings.").optional(),
80
+ images: z.record(
81
+ z.string(),
82
+ z.object({
83
+ image: z.string().describe("Wix media Image").optional(),
84
+ resize: z.enum(["FIT", "CROP"]).optional()
85
+ })
86
+ ).describe("Images settings.").optional(),
87
+ selects: z.record(
88
+ z.string(),
89
+ z.object({
90
+ value: z.string().describe("Selected value").optional().nullable(),
91
+ primaryColor: z.string().describe("Color hex code").min(7).max(7).optional().nullable(),
92
+ secondaryColor: z.string().describe("Color hex code").min(7).max(7).optional().nullable(),
93
+ size: z.number().int().describe("Size").optional().nullable()
94
+ })
95
+ ).describe("Select option settings.").optional(),
96
+ backgrounds: z.record(
97
+ z.string(),
98
+ z.object({
99
+ color: z.string().describe("Color of the background hex code").min(7).max(9).optional().nullable(),
100
+ image: z.string().describe("Wix media Image").optional()
101
+ })
102
+ ).describe("Backgrounds settings.").optional()
103
+ })
104
+ ).max(10).optional(),
105
+ paperSize: z.enum(["A4_PORTRAIT", "A4_LANDSCAPE"]).optional(),
106
+ pageOverflow: z.enum(["CONTENT_HIDDEN", "CONTENT_BREAK"]).optional()
107
+ }).describe("Settings to be upserted.").optional()
108
+ }).optional()
109
+ });
110
+ var UpsertTemplateSettingsResponse = z.object({
111
+ settings: z.object({
112
+ _id: z.string().describe("Auto generated ID.").regex(
113
+ /^[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}$/,
114
+ "Must be a valid GUID"
115
+ ).optional().nullable(),
116
+ appSlug: z.string().describe("Wix app definition ID.").min(1).max(20).optional().nullable(),
117
+ templateType: z.string().describe("The type of the template.").min(1).max(20).optional().nullable(),
118
+ templateId: z.string().describe("The id of the template.").min(1).max(20).optional().nullable(),
119
+ externalId: z.string().describe(
120
+ "Template settings external ID. For example ticket definition ID.\nMust be unique per tenant where tenant is taken from authorization (wix_app_id + meta_site_id)"
121
+ ).min(1).max(100).optional().nullable(),
122
+ _createdDate: z.date().describe("Date settings were created.").optional().nullable(),
123
+ _updatedDate: z.date().describe("Date settings were updated.").optional().nullable(),
124
+ settingGroups: z.array(
125
+ z.object({
126
+ groupId: z.string().describe("Id of the control group").min(5).max(50).optional(),
127
+ display: z.record(z.string(), z.boolean()).describe("Display settings.").optional(),
128
+ texts: z.record(
129
+ z.string(),
130
+ z.object({
131
+ fontFamily: z.string().describe("Font family class name").max(20).optional().nullable(),
132
+ fontStyle: z.array(z.string()).max(10).optional(),
133
+ textAlignment: z.string().describe("Text alignment class name").max(20).optional().nullable(),
134
+ textColor: z.string().describe("Text color hex code").min(7).max(7).optional().nullable(),
135
+ fontSize: z.number().int().describe("Font size").min(1).optional().nullable(),
136
+ textContent: z.array(
137
+ z.object({
138
+ _id: z.string().min(3).max(50).optional(),
139
+ value: z.string().max(500).optional().nullable(),
140
+ visible: z.boolean().optional()
141
+ })
142
+ ).optional()
143
+ })
144
+ ).describe("Texts settings.").optional(),
145
+ images: z.record(
146
+ z.string(),
147
+ z.object({
148
+ image: z.string().describe("Wix media Image").optional(),
149
+ resize: z.enum(["FIT", "CROP"]).describe("Image resizing mode").optional()
150
+ })
151
+ ).describe("Images settings.").optional(),
152
+ selects: z.record(
153
+ z.string(),
154
+ z.object({
155
+ value: z.string().describe("Selected value").optional().nullable(),
156
+ primaryColor: z.string().describe("Color hex code").min(7).max(7).optional().nullable(),
157
+ secondaryColor: z.string().describe("Color hex code").min(7).max(7).optional().nullable(),
158
+ size: z.number().int().describe("Size").optional().nullable()
159
+ })
160
+ ).describe("Select option settings.").optional(),
161
+ backgrounds: z.record(
162
+ z.string(),
163
+ z.object({
164
+ color: z.string().describe("Color of the background hex code").min(7).max(9).optional().nullable(),
165
+ image: z.string().describe("Wix media Image").optional()
166
+ })
167
+ ).describe("Backgrounds settings.").optional()
168
+ })
169
+ ).max(10).optional(),
170
+ paperSize: z.enum(["A4_PORTRAIT", "A4_LANDSCAPE"]).describe("Paper size").optional(),
171
+ pageOverflow: z.enum(["CONTENT_HIDDEN", "CONTENT_BREAK"]).optional()
172
+ }).describe("Upserted settings.").optional()
173
+ });
174
+ var QueryTemplateSettingsRequest = z.object({
175
+ query: z.intersection(
176
+ z.object({
177
+ filter: z.record(z.string(), z.any()).describe(
178
+ "Filter object.\n\nLearn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters)."
179
+ ).optional().nullable(),
180
+ sort: z.array(
181
+ z.object({
182
+ fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
183
+ order: z.enum(["ASC", "DESC"]).optional()
184
+ })
185
+ ).optional()
186
+ }),
187
+ z.xor([
188
+ z.object({
189
+ paging: z.never().optional(),
190
+ cursorPaging: z.never().optional()
191
+ }),
192
+ z.object({
193
+ cursorPaging: z.never().optional(),
194
+ paging: z.object({
195
+ limit: z.number().int().describe("Number of items to load.").min(0).optional().nullable(),
196
+ offset: z.number().int().describe("Number of items to skip in the current sort order.").min(0).optional().nullable()
197
+ }).describe(
198
+ "Paging options to limit and offset the number of items."
199
+ )
200
+ }),
201
+ z.object({
202
+ paging: z.never().optional(),
203
+ cursorPaging: z.object({
204
+ limit: z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
205
+ cursor: z.string().describe(
206
+ "Pointer to the next or previous page in the list of results.\n\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
207
+ ).max(16e3).optional().nullable()
208
+ }).describe(
209
+ "Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`."
210
+ )
211
+ })
212
+ ])
213
+ ).describe("Generic query object.")
214
+ });
215
+ var QueryTemplateSettingsResponse = z.object({
216
+ settings: z.array(
217
+ z.object({
218
+ _id: z.string().describe("Auto generated ID.").regex(
219
+ /^[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}$/,
220
+ "Must be a valid GUID"
221
+ ).optional().nullable(),
222
+ appSlug: z.string().describe("Wix app definition ID.").min(1).max(20).optional().nullable(),
223
+ templateType: z.string().describe("The type of the template.").min(1).max(20).optional().nullable(),
224
+ templateId: z.string().describe("The id of the template.").min(1).max(20).optional().nullable(),
225
+ externalId: z.string().describe(
226
+ "Template settings external ID. For example ticket definition ID.\nMust be unique per tenant where tenant is taken from authorization (wix_app_id + meta_site_id)"
227
+ ).min(1).max(100).optional().nullable(),
228
+ _createdDate: z.date().describe("Date settings were created.").optional().nullable(),
229
+ _updatedDate: z.date().describe("Date settings were updated.").optional().nullable(),
230
+ settingGroups: z.array(
231
+ z.object({
232
+ groupId: z.string().describe("Id of the control group").min(5).max(50).optional(),
233
+ display: z.record(z.string(), z.boolean()).describe("Display settings.").optional(),
234
+ texts: z.record(
235
+ z.string(),
236
+ z.object({
237
+ fontFamily: z.string().describe("Font family class name").max(20).optional().nullable(),
238
+ fontStyle: z.array(z.string()).max(10).optional(),
239
+ textAlignment: z.string().describe("Text alignment class name").max(20).optional().nullable(),
240
+ textColor: z.string().describe("Text color hex code").min(7).max(7).optional().nullable(),
241
+ fontSize: z.number().int().describe("Font size").min(1).optional().nullable(),
242
+ textContent: z.array(
243
+ z.object({
244
+ _id: z.string().min(3).max(50).optional(),
245
+ value: z.string().max(500).optional().nullable(),
246
+ visible: z.boolean().optional()
247
+ })
248
+ ).optional()
249
+ })
250
+ ).describe("Texts settings.").optional(),
251
+ images: z.record(
252
+ z.string(),
253
+ z.object({
254
+ image: z.string().describe("Wix media Image").optional(),
255
+ resize: z.enum(["FIT", "CROP"]).describe("Image resizing mode").optional()
256
+ })
257
+ ).describe("Images settings.").optional(),
258
+ selects: z.record(
259
+ z.string(),
260
+ z.object({
261
+ value: z.string().describe("Selected value").optional().nullable(),
262
+ primaryColor: z.string().describe("Color hex code").min(7).max(7).optional().nullable(),
263
+ secondaryColor: z.string().describe("Color hex code").min(7).max(7).optional().nullable(),
264
+ size: z.number().int().describe("Size").optional().nullable()
265
+ })
266
+ ).describe("Select option settings.").optional(),
267
+ backgrounds: z.record(
268
+ z.string(),
269
+ z.object({
270
+ color: z.string().describe("Color of the background hex code").min(7).max(9).optional().nullable(),
271
+ image: z.string().describe("Wix media Image").optional()
272
+ })
273
+ ).describe("Backgrounds settings.").optional()
274
+ })
275
+ ).max(10).optional(),
276
+ paperSize: z.enum(["A4_PORTRAIT", "A4_LANDSCAPE"]).describe("Paper size").optional(),
277
+ pageOverflow: z.enum(["CONTENT_HIDDEN", "CONTENT_BREAK"]).optional()
278
+ })
279
+ ).optional(),
280
+ metadata: z.object({
281
+ count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
282
+ offset: z.number().int().describe("Offset that was requested.").optional().nullable(),
283
+ total: z.number().int().describe(
284
+ "Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set."
285
+ ).optional().nullable(),
286
+ tooManyToCount: z.boolean().describe(
287
+ "Flag that indicates the server failed to calculate the `total` field."
288
+ ).optional().nullable(),
289
+ cursors: z.object({
290
+ next: z.string().describe(
291
+ "Cursor string pointing to the next page in the list of results."
292
+ ).max(16e3).optional().nullable(),
293
+ prev: z.string().describe(
294
+ "Cursor pointing to the previous page in the list of results."
295
+ ).max(16e3).optional().nullable()
296
+ }).describe(
297
+ "Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used."
298
+ ).optional()
299
+ }).describe("Query result's metadata.").optional()
300
+ });
301
+ var ResolveTemplateSettingsRequest = z.object({
302
+ options: z.object({
303
+ templateSettingsId: z.string().describe("The id of the settings.").regex(
304
+ /^[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}$/,
305
+ "Must be a valid GUID"
306
+ ).optional().nullable(),
307
+ templateSettingsExternalId: z.string().describe("External ID.").max(100).optional().nullable(),
308
+ templateType: z.string().describe("The type of the template. Used to resolve default settings.").min(1).max(20),
309
+ appSlug: z.string().describe("Wix app slug.").min(1).max(20),
310
+ templateId: z.string().describe("The id of template.").min(1).max(20).optional().nullable()
311
+ })
312
+ });
313
+ var ResolveTemplateSettingsResponse = z.object({
314
+ settings: z.object({
315
+ _id: z.string().describe("Auto generated ID.").regex(
316
+ /^[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}$/,
317
+ "Must be a valid GUID"
318
+ ).optional().nullable(),
319
+ appSlug: z.string().describe("Wix app definition ID.").min(1).max(20).optional().nullable(),
320
+ templateType: z.string().describe("The type of the template.").min(1).max(20).optional().nullable(),
321
+ templateId: z.string().describe("The id of the template.").min(1).max(20).optional().nullable(),
322
+ externalId: z.string().describe(
323
+ "Template settings external ID. For example ticket definition ID.\nMust be unique per tenant where tenant is taken from authorization (wix_app_id + meta_site_id)"
324
+ ).min(1).max(100).optional().nullable(),
325
+ _createdDate: z.date().describe("Date settings were created.").optional().nullable(),
326
+ _updatedDate: z.date().describe("Date settings were updated.").optional().nullable(),
327
+ settingGroups: z.array(
328
+ z.object({
329
+ groupId: z.string().describe("Id of the control group").min(5).max(50).optional(),
330
+ display: z.record(z.string(), z.boolean()).describe("Display settings.").optional(),
331
+ texts: z.record(
332
+ z.string(),
333
+ z.object({
334
+ fontFamily: z.string().describe("Font family class name").max(20).optional().nullable(),
335
+ fontStyle: z.array(z.string()).max(10).optional(),
336
+ textAlignment: z.string().describe("Text alignment class name").max(20).optional().nullable(),
337
+ textColor: z.string().describe("Text color hex code").min(7).max(7).optional().nullable(),
338
+ fontSize: z.number().int().describe("Font size").min(1).optional().nullable(),
339
+ textContent: z.array(
340
+ z.object({
341
+ _id: z.string().min(3).max(50).optional(),
342
+ value: z.string().max(500).optional().nullable(),
343
+ visible: z.boolean().optional()
344
+ })
345
+ ).optional()
346
+ })
347
+ ).describe("Texts settings.").optional(),
348
+ images: z.record(
349
+ z.string(),
350
+ z.object({
351
+ image: z.string().describe("Wix media Image").optional(),
352
+ resize: z.enum(["FIT", "CROP"]).describe("Image resizing mode").optional()
353
+ })
354
+ ).describe("Images settings.").optional(),
355
+ selects: z.record(
356
+ z.string(),
357
+ z.object({
358
+ value: z.string().describe("Selected value").optional().nullable(),
359
+ primaryColor: z.string().describe("Color hex code").min(7).max(7).optional().nullable(),
360
+ secondaryColor: z.string().describe("Color hex code").min(7).max(7).optional().nullable(),
361
+ size: z.number().int().describe("Size").optional().nullable()
362
+ })
363
+ ).describe("Select option settings.").optional(),
364
+ backgrounds: z.record(
365
+ z.string(),
366
+ z.object({
367
+ color: z.string().describe("Color of the background hex code").min(7).max(9).optional().nullable(),
368
+ image: z.string().describe("Wix media Image").optional()
369
+ })
370
+ ).describe("Backgrounds settings.").optional()
371
+ })
372
+ ).max(10).optional(),
373
+ paperSize: z.enum(["A4_PORTRAIT", "A4_LANDSCAPE"]).describe("Paper size").optional(),
374
+ pageOverflow: z.enum(["CONTENT_HIDDEN", "CONTENT_BREAK"]).optional()
375
+ }).describe("Retrieved settings.").optional()
376
+ });
377
+ // Annotate the CommonJS export names for ESM import in node:
378
+ 0 && (module.exports = {
379
+ QueryTemplateSettingsRequest,
380
+ QueryTemplateSettingsResponse,
381
+ ResolveTemplateSettingsRequest,
382
+ ResolveTemplateSettingsResponse,
383
+ UpsertTemplateSettingsRequest,
384
+ UpsertTemplateSettingsResponse
385
+ });
386
+ //# sourceMappingURL=schemas.js.map