@wix/auto_sdk_data-extension-schema_schemas 1.0.280 → 1.0.281

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 (44) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +49 -4
  4. package/build/cjs/index.typings.js.map +1 -1
  5. package/build/cjs/meta.d.ts +49 -4
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/es/index.d.mts +1 -1
  8. package/build/es/index.mjs.map +1 -1
  9. package/build/es/index.typings.d.mts +49 -4
  10. package/build/es/index.typings.mjs.map +1 -1
  11. package/build/es/meta.d.mts +49 -4
  12. package/build/es/meta.mjs.map +1 -1
  13. package/build/internal/cjs/index.d.ts +1 -1
  14. package/build/internal/cjs/index.typings.d.ts +49 -4
  15. package/build/internal/cjs/meta.d.ts +49 -4
  16. package/build/internal/es/index.d.mts +1 -1
  17. package/build/internal/es/index.typings.d.mts +49 -4
  18. package/build/internal/es/meta.d.mts +49 -4
  19. package/package.json +4 -11
  20. package/build/cjs/schemas.d.ts +0 -103
  21. package/build/cjs/schemas.js +0 -231
  22. package/build/cjs/schemas.js.map +0 -1
  23. package/build/es/schemas.d.mts +0 -103
  24. package/build/es/schemas.mjs +0 -185
  25. package/build/es/schemas.mjs.map +0 -1
  26. package/build/internal/cjs/index.js +0 -4240
  27. package/build/internal/cjs/index.js.map +0 -1
  28. package/build/internal/cjs/index.typings.js +0 -4121
  29. package/build/internal/cjs/index.typings.js.map +0 -1
  30. package/build/internal/cjs/meta.js +0 -4072
  31. package/build/internal/cjs/meta.js.map +0 -1
  32. package/build/internal/cjs/schemas.d.ts +0 -103
  33. package/build/internal/cjs/schemas.js +0 -231
  34. package/build/internal/cjs/schemas.js.map +0 -1
  35. package/build/internal/es/index.mjs +0 -3897
  36. package/build/internal/es/index.mjs.map +0 -1
  37. package/build/internal/es/index.typings.mjs +0 -3781
  38. package/build/internal/es/index.typings.mjs.map +0 -1
  39. package/build/internal/es/meta.mjs +0 -3729
  40. package/build/internal/es/meta.mjs.map +0 -1
  41. package/build/internal/es/schemas.d.mts +0 -103
  42. package/build/internal/es/schemas.mjs +0 -185
  43. package/build/internal/es/schemas.mjs.map +0 -1
  44. package/schemas/package.json +0 -3
@@ -1,103 +0,0 @@
1
- import * as z from 'zod';
2
-
3
- declare const CreateDataExtensionSchemaRequest: z.ZodObject<{
4
- dataExtensionSchema: z.ZodObject<{
5
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6
- fqdn: z.ZodString;
7
- namespace: z.ZodString;
8
- jsonSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
9
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
10
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
11
- revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
12
- maxLimitBytes: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
13
- currentSizeBytes: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
14
- }, z.core.$strip>;
15
- }, z.core.$strip>;
16
- declare const CreateDataExtensionSchemaResponse: z.ZodObject<{
17
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
18
- fqdn: z.ZodNullable<z.ZodOptional<z.ZodString>>;
19
- namespace: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20
- jsonSchema: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
21
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
22
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
23
- revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
24
- maxLimitBytes: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
25
- currentSizeBytes: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
26
- }, z.core.$strip>;
27
- declare const UpdateDataExtensionSchemaRequest: z.ZodObject<{
28
- dataExtensionSchema: z.ZodObject<{
29
- _id: z.ZodString;
30
- fqdn: z.ZodNullable<z.ZodOptional<z.ZodString>>;
31
- namespace: z.ZodNullable<z.ZodOptional<z.ZodString>>;
32
- jsonSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
33
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
34
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
35
- revision: z.ZodString;
36
- maxLimitBytes: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
37
- currentSizeBytes: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
38
- }, z.core.$strip>;
39
- }, z.core.$strip>;
40
- declare const UpdateDataExtensionSchemaResponse: z.ZodObject<{
41
- dataExtensionSchema: z.ZodOptional<z.ZodObject<{
42
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
43
- fqdn: z.ZodNullable<z.ZodOptional<z.ZodString>>;
44
- namespace: z.ZodNullable<z.ZodOptional<z.ZodString>>;
45
- jsonSchema: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
46
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
47
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
48
- revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
49
- maxLimitBytes: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
50
- currentSizeBytes: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
51
- }, z.core.$strip>>;
52
- }, z.core.$strip>;
53
- declare const ListDataExtensionSchemasRequest: z.ZodObject<{
54
- fqdn: z.ZodString;
55
- options: z.ZodOptional<z.ZodObject<{
56
- namespaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
57
- fields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
58
- UNKNOWN_REQUESTED_FIELD: "UNKNOWN_REQUESTED_FIELD";
59
- ARCHIVED: "ARCHIVED";
60
- }>>>;
61
- extensionPoints: z.ZodOptional<z.ZodArray<z.ZodString>>;
62
- }, z.core.$strip>>;
63
- }, z.core.$strip>;
64
- declare const ListDataExtensionSchemasResponse: z.ZodObject<{
65
- dataExtensionSchemas: z.ZodOptional<z.ZodArray<z.ZodObject<{
66
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
67
- fqdn: z.ZodNullable<z.ZodOptional<z.ZodString>>;
68
- namespace: z.ZodNullable<z.ZodOptional<z.ZodString>>;
69
- jsonSchema: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
70
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
71
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
72
- revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
73
- maxLimitBytes: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
74
- currentSizeBytes: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
75
- }, z.core.$strip>>>;
76
- }, z.core.$strip>;
77
- declare const DeleteByWhiteListedMetaSiteRequest: z.ZodObject<{
78
- metaSiteId: z.ZodString;
79
- }, z.core.$strip>;
80
- declare const DeleteByWhiteListedMetaSiteResponse: z.ZodObject<{
81
- hasMore: z.ZodOptional<z.ZodBoolean>;
82
- }, z.core.$strip>;
83
- declare const DeleteUserDefinedFieldsRequest: z.ZodObject<{
84
- dataExtensionSchemaId: z.ZodString;
85
- options: z.ZodObject<{
86
- fieldsToDelete: z.ZodArray<z.ZodString>;
87
- }, z.core.$strip>;
88
- }, z.core.$strip>;
89
- declare const DeleteUserDefinedFieldsResponse: z.ZodObject<{
90
- dataExtensionSchema: z.ZodOptional<z.ZodObject<{
91
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
92
- fqdn: z.ZodNullable<z.ZodOptional<z.ZodString>>;
93
- namespace: z.ZodNullable<z.ZodOptional<z.ZodString>>;
94
- jsonSchema: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
95
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
96
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
97
- revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
98
- maxLimitBytes: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
99
- currentSizeBytes: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
100
- }, z.core.$strip>>;
101
- }, z.core.$strip>;
102
-
103
- export { CreateDataExtensionSchemaRequest, CreateDataExtensionSchemaResponse, DeleteByWhiteListedMetaSiteRequest, DeleteByWhiteListedMetaSiteResponse, DeleteUserDefinedFieldsRequest, DeleteUserDefinedFieldsResponse, ListDataExtensionSchemasRequest, ListDataExtensionSchemasResponse, UpdateDataExtensionSchemaRequest, UpdateDataExtensionSchemaResponse };
@@ -1,185 +0,0 @@
1
- // src/data-extensions-v1-data-extension-schema-schemas.schemas.ts
2
- import * as z from "zod";
3
- var CreateDataExtensionSchemaRequest = /* @__PURE__ */ z.object({
4
- dataExtensionSchema: z.object({
5
- _id: z.string().describe("Schema ID.").regex(
6
- /^[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}$/,
7
- "Must be a valid GUID"
8
- ).optional().nullable(),
9
- fqdn: z.string().describe(
10
- "FQDN of the entity this schema extends. Use a wildcard (`*`) in place of the version number, for example `wix.ecom.*.order`. See [Supported objects](https://dev.wix.com/docs/api-reference/business-management/data-extension-schema/introduction#supported-objects) for valid FQDNs."
11
- ).max(255),
12
- namespace: z.string().describe(
13
- "Namespace for this schema. For example, an app creating schemas might use their app name as a namespace.\nWhen a site owner creates a user-defined schema, the namespace is: `_user_fields`."
14
- ).max(164),
15
- jsonSchema: z.record(z.string(), z.any()).describe(
16
- 'Schema definition in [JSON schema format](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/the-json-schema) with the following [vocab](https://docs.json-everything.net/schema/vocabs/) extension:\n```\n{\n"$schema": "https://json-schema.org/draft/2020-12/schema",\n"$id": "https://wixapis.com/v1/json-schema/extensions",\n"$vocabulary": {\n"https://wixapis.com/v1/json-schema/extensions/vocab/data-extensions": true\n},\n"$dynamicAnchor": "meta",\n"title": "Wix\' data-extensions vocabulary meta schema",\n"type": [\n"object",\n"boolean"\n],\n"properties": {\n"x-wix-permissions": {\n"type": "object",\n"description": "list of identity types that are allowed reading schema properties",\n"properties": {\n"read": {\n"type": "array",\n"items": {\n"type": "string",\n"enum": [\n"apps",\n"owning-app",\n"users",\n"users-of-users"\n]\n}\n},\n"write": {\n"type": "array",\n"items": {\n"type": "string",\n"enum": [\n"apps",\n"owning-app",\n"users",\n"users-of-users"\n]\n}\n}\n}\n},\n"x-wix-display": {\n"type": "object",\n"description": "field display properties",\n"schema": {\n"properties": {\n"placeholder": {\n"type": "string",\n"maxLength": 255,\n"description": "placeholder text for input fields"\n},\n"label": {\n"type": "string",\n"maxLength": 255,\n"description": "label of the input fields"\n},\n"hint": {\n"type": "string",\n"maxLength": 255,\n"description": "a short explanation that appears next to the input field"\n}\n}\n}\n}\n}\n}\n```'
17
- ),
18
- _updatedDate: z.date().describe("Date and time the schema was last updated.").optional().nullable(),
19
- _createdDate: z.date().describe("Date and time the schema was created.").optional().nullable(),
20
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
21
- "Revision number, which increments by 1 each time the schema is updated. To prevent conflicting changes, the existing revision must be used when updating a schema."
22
- ).optional().nullable(),
23
- maxLimitBytes: z.number().int().describe("Maximum allowed schema size in bytes.").optional().nullable(),
24
- currentSizeBytes: z.number().int().describe("Current schema size in bytes.").optional().nullable()
25
- }).describe("Schema to create.")
26
- });
27
- var CreateDataExtensionSchemaResponse = /* @__PURE__ */ z.object({
28
- _id: z.string().describe("Schema ID.").regex(
29
- /^[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}$/,
30
- "Must be a valid GUID"
31
- ).optional().nullable(),
32
- fqdn: z.string().describe(
33
- "FQDN of the entity this schema extends. Use a wildcard (`*`) in place of the version number, for example `wix.ecom.*.order`. See [Supported objects](https://dev.wix.com/docs/api-reference/business-management/data-extension-schema/introduction#supported-objects) for valid FQDNs."
34
- ).max(255).optional().nullable(),
35
- namespace: z.string().describe(
36
- "Namespace for this schema. For example, an app creating schemas might use their app name as a namespace.\nWhen a site owner creates a user-defined schema, the namespace is: `_user_fields`."
37
- ).max(164).optional().nullable(),
38
- jsonSchema: z.record(z.string(), z.any()).describe(
39
- 'Schema definition in [JSON schema format](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/the-json-schema) with the following [vocab](https://docs.json-everything.net/schema/vocabs/) extension:\n```\n{\n"$schema": "https://json-schema.org/draft/2020-12/schema",\n"$id": "https://wixapis.com/v1/json-schema/extensions",\n"$vocabulary": {\n"https://wixapis.com/v1/json-schema/extensions/vocab/data-extensions": true\n},\n"$dynamicAnchor": "meta",\n"title": "Wix\' data-extensions vocabulary meta schema",\n"type": [\n"object",\n"boolean"\n],\n"properties": {\n"x-wix-permissions": {\n"type": "object",\n"description": "list of identity types that are allowed reading schema properties",\n"properties": {\n"read": {\n"type": "array",\n"items": {\n"type": "string",\n"enum": [\n"apps",\n"owning-app",\n"users",\n"users-of-users"\n]\n}\n},\n"write": {\n"type": "array",\n"items": {\n"type": "string",\n"enum": [\n"apps",\n"owning-app",\n"users",\n"users-of-users"\n]\n}\n}\n}\n},\n"x-wix-display": {\n"type": "object",\n"description": "field display properties",\n"schema": {\n"properties": {\n"placeholder": {\n"type": "string",\n"maxLength": 255,\n"description": "placeholder text for input fields"\n},\n"label": {\n"type": "string",\n"maxLength": 255,\n"description": "label of the input fields"\n},\n"hint": {\n"type": "string",\n"maxLength": 255,\n"description": "a short explanation that appears next to the input field"\n}\n}\n}\n}\n}\n}\n```'
40
- ).optional().nullable(),
41
- _updatedDate: z.date().describe("Date and time the schema was last updated.").optional().nullable(),
42
- _createdDate: z.date().describe("Date and time the schema was created.").optional().nullable(),
43
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
44
- "Revision number, which increments by 1 each time the schema is updated. To prevent conflicting changes, the existing revision must be used when updating a schema."
45
- ).optional().nullable(),
46
- maxLimitBytes: z.number().int().describe("Maximum allowed schema size in bytes.").optional().nullable(),
47
- currentSizeBytes: z.number().int().describe("Current schema size in bytes.").optional().nullable()
48
- });
49
- var UpdateDataExtensionSchemaRequest = /* @__PURE__ */ z.object({
50
- dataExtensionSchema: z.object({
51
- _id: z.string().describe("Schema ID.").regex(
52
- /^[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}$/,
53
- "Must be a valid GUID"
54
- ),
55
- fqdn: z.string().describe(
56
- "FQDN of the entity this schema extends. Use a wildcard (`*`) in place of the version number, for example `wix.ecom.*.order`. See [Supported objects](https://dev.wix.com/docs/api-reference/business-management/data-extension-schema/introduction#supported-objects) for valid FQDNs."
57
- ).max(255).optional().nullable(),
58
- namespace: z.string().describe(
59
- "Namespace for this schema. For example, an app creating schemas might use their app name as a namespace.\nWhen a site owner creates a user-defined schema, the namespace is: `_user_fields`."
60
- ).max(164).optional().nullable(),
61
- jsonSchema: z.record(z.string(), z.any()).describe(
62
- 'Schema definition in [JSON schema format](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/the-json-schema) with the following [vocab](https://docs.json-everything.net/schema/vocabs/) extension:\n```\n{\n"$schema": "https://json-schema.org/draft/2020-12/schema",\n"$id": "https://wixapis.com/v1/json-schema/extensions",\n"$vocabulary": {\n"https://wixapis.com/v1/json-schema/extensions/vocab/data-extensions": true\n},\n"$dynamicAnchor": "meta",\n"title": "Wix\' data-extensions vocabulary meta schema",\n"type": [\n"object",\n"boolean"\n],\n"properties": {\n"x-wix-permissions": {\n"type": "object",\n"description": "list of identity types that are allowed reading schema properties",\n"properties": {\n"read": {\n"type": "array",\n"items": {\n"type": "string",\n"enum": [\n"apps",\n"owning-app",\n"users",\n"users-of-users"\n]\n}\n},\n"write": {\n"type": "array",\n"items": {\n"type": "string",\n"enum": [\n"apps",\n"owning-app",\n"users",\n"users-of-users"\n]\n}\n}\n}\n},\n"x-wix-display": {\n"type": "object",\n"description": "field display properties",\n"schema": {\n"properties": {\n"placeholder": {\n"type": "string",\n"maxLength": 255,\n"description": "placeholder text for input fields"\n},\n"label": {\n"type": "string",\n"maxLength": 255,\n"description": "label of the input fields"\n},\n"hint": {\n"type": "string",\n"maxLength": 255,\n"description": "a short explanation that appears next to the input field"\n}\n}\n}\n}\n}\n}\n```'
63
- ),
64
- _updatedDate: z.date().describe("Date and time the schema was last updated.").optional().nullable(),
65
- _createdDate: z.date().describe("Date and time the schema was created.").optional().nullable(),
66
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
67
- "Revision number, which increments by 1 each time the schema is updated. To prevent conflicting changes, the existing revision must be used when updating a schema."
68
- ),
69
- maxLimitBytes: z.number().int().describe("Maximum allowed schema size in bytes.").optional().nullable(),
70
- currentSizeBytes: z.number().int().describe("Current schema size in bytes.").optional().nullable()
71
- }).describe("Schema to update.")
72
- });
73
- var UpdateDataExtensionSchemaResponse = /* @__PURE__ */ z.object({
74
- dataExtensionSchema: z.object({
75
- _id: z.string().describe("Schema ID.").regex(
76
- /^[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}$/,
77
- "Must be a valid GUID"
78
- ).optional().nullable(),
79
- fqdn: z.string().describe(
80
- "FQDN of the entity this schema extends. Use a wildcard (`*`) in place of the version number, for example `wix.ecom.*.order`. See [Supported objects](https://dev.wix.com/docs/api-reference/business-management/data-extension-schema/introduction#supported-objects) for valid FQDNs."
81
- ).max(255).optional().nullable(),
82
- namespace: z.string().describe(
83
- "Namespace for this schema. For example, an app creating schemas might use their app name as a namespace.\nWhen a site owner creates a user-defined schema, the namespace is: `_user_fields`."
84
- ).max(164).optional().nullable(),
85
- jsonSchema: z.record(z.string(), z.any()).describe(
86
- 'Schema definition in [JSON schema format](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/the-json-schema) with the following [vocab](https://docs.json-everything.net/schema/vocabs/) extension:\n```\n{\n"$schema": "https://json-schema.org/draft/2020-12/schema",\n"$id": "https://wixapis.com/v1/json-schema/extensions",\n"$vocabulary": {\n"https://wixapis.com/v1/json-schema/extensions/vocab/data-extensions": true\n},\n"$dynamicAnchor": "meta",\n"title": "Wix\' data-extensions vocabulary meta schema",\n"type": [\n"object",\n"boolean"\n],\n"properties": {\n"x-wix-permissions": {\n"type": "object",\n"description": "list of identity types that are allowed reading schema properties",\n"properties": {\n"read": {\n"type": "array",\n"items": {\n"type": "string",\n"enum": [\n"apps",\n"owning-app",\n"users",\n"users-of-users"\n]\n}\n},\n"write": {\n"type": "array",\n"items": {\n"type": "string",\n"enum": [\n"apps",\n"owning-app",\n"users",\n"users-of-users"\n]\n}\n}\n}\n},\n"x-wix-display": {\n"type": "object",\n"description": "field display properties",\n"schema": {\n"properties": {\n"placeholder": {\n"type": "string",\n"maxLength": 255,\n"description": "placeholder text for input fields"\n},\n"label": {\n"type": "string",\n"maxLength": 255,\n"description": "label of the input fields"\n},\n"hint": {\n"type": "string",\n"maxLength": 255,\n"description": "a short explanation that appears next to the input field"\n}\n}\n}\n}\n}\n}\n```'
87
- ).optional().nullable(),
88
- _updatedDate: z.date().describe("Date and time the schema was last updated.").optional().nullable(),
89
- _createdDate: z.date().describe("Date and time the schema was created.").optional().nullable(),
90
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
91
- "Revision number, which increments by 1 each time the schema is updated. To prevent conflicting changes, the existing revision must be used when updating a schema."
92
- ).optional().nullable(),
93
- maxLimitBytes: z.number().int().describe("Maximum allowed schema size in bytes.").optional().nullable(),
94
- currentSizeBytes: z.number().int().describe("Current schema size in bytes.").optional().nullable()
95
- }).describe("Updated schema.").optional()
96
- });
97
- var ListDataExtensionSchemasRequest = /* @__PURE__ */ z.object({
98
- fqdn: z.string().describe(
99
- "[Fully qualified domain name](https://dev.wix.com/docs/rest/articles/getting-started/fqdns)."
100
- ).max(255),
101
- options: z.object({
102
- namespaces: z.array(z.string()).max(100).optional(),
103
- fields: z.array(z.enum(["UNKNOWN_REQUESTED_FIELD", "ARCHIVED"])).max(5).optional(),
104
- extensionPoints: z.array(z.string()).max(20).optional()
105
- }).optional()
106
- });
107
- var ListDataExtensionSchemasResponse = /* @__PURE__ */ z.object({
108
- dataExtensionSchemas: z.array(
109
- z.object({
110
- _id: z.string().describe("Schema ID.").regex(
111
- /^[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}$/,
112
- "Must be a valid GUID"
113
- ).optional().nullable(),
114
- fqdn: z.string().describe(
115
- "FQDN of the entity this schema extends. Use a wildcard (`*`) in place of the version number, for example `wix.ecom.*.order`. See [Supported objects](https://dev.wix.com/docs/api-reference/business-management/data-extension-schema/introduction#supported-objects) for valid FQDNs."
116
- ).max(255).optional().nullable(),
117
- namespace: z.string().describe(
118
- "Namespace for this schema. For example, an app creating schemas might use their app name as a namespace.\nWhen a site owner creates a user-defined schema, the namespace is: `_user_fields`."
119
- ).max(164).optional().nullable(),
120
- jsonSchema: z.record(z.string(), z.any()).describe(
121
- 'Schema definition in [JSON schema format](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/the-json-schema) with the following [vocab](https://docs.json-everything.net/schema/vocabs/) extension:\n```\n{\n"$schema": "https://json-schema.org/draft/2020-12/schema",\n"$id": "https://wixapis.com/v1/json-schema/extensions",\n"$vocabulary": {\n"https://wixapis.com/v1/json-schema/extensions/vocab/data-extensions": true\n},\n"$dynamicAnchor": "meta",\n"title": "Wix\' data-extensions vocabulary meta schema",\n"type": [\n"object",\n"boolean"\n],\n"properties": {\n"x-wix-permissions": {\n"type": "object",\n"description": "list of identity types that are allowed reading schema properties",\n"properties": {\n"read": {\n"type": "array",\n"items": {\n"type": "string",\n"enum": [\n"apps",\n"owning-app",\n"users",\n"users-of-users"\n]\n}\n},\n"write": {\n"type": "array",\n"items": {\n"type": "string",\n"enum": [\n"apps",\n"owning-app",\n"users",\n"users-of-users"\n]\n}\n}\n}\n},\n"x-wix-display": {\n"type": "object",\n"description": "field display properties",\n"schema": {\n"properties": {\n"placeholder": {\n"type": "string",\n"maxLength": 255,\n"description": "placeholder text for input fields"\n},\n"label": {\n"type": "string",\n"maxLength": 255,\n"description": "label of the input fields"\n},\n"hint": {\n"type": "string",\n"maxLength": 255,\n"description": "a short explanation that appears next to the input field"\n}\n}\n}\n}\n}\n}\n```'
122
- ).optional().nullable(),
123
- _updatedDate: z.date().describe("Date and time the schema was last updated.").optional().nullable(),
124
- _createdDate: z.date().describe("Date and time the schema was created.").optional().nullable(),
125
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
126
- "Revision number, which increments by 1 each time the schema is updated. To prevent conflicting changes, the existing revision must be used when updating a schema."
127
- ).optional().nullable(),
128
- maxLimitBytes: z.number().int().describe("Maximum allowed schema size in bytes.").optional().nullable(),
129
- currentSizeBytes: z.number().int().describe("Current schema size in bytes.").optional().nullable()
130
- })
131
- ).optional()
132
- });
133
- var DeleteByWhiteListedMetaSiteRequest = /* @__PURE__ */ z.object({
134
- metaSiteId: z.string().describe("Meta site id").regex(
135
- /^[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}$/,
136
- "Must be a valid GUID"
137
- )
138
- });
139
- var DeleteByWhiteListedMetaSiteResponse = /* @__PURE__ */ z.object({
140
- hasMore: z.boolean().describe("has more").optional()
141
- });
142
- var DeleteUserDefinedFieldsRequest = /* @__PURE__ */ z.object({
143
- dataExtensionSchemaId: z.string().describe("Schema ID.").regex(
144
- /^[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}$/,
145
- "Must be a valid GUID"
146
- ),
147
- options: z.object({ fieldsToDelete: z.array(z.string()).min(1).max(10) })
148
- });
149
- var DeleteUserDefinedFieldsResponse = /* @__PURE__ */ z.object({
150
- dataExtensionSchema: z.object({
151
- _id: z.string().describe("Schema ID.").regex(
152
- /^[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}$/,
153
- "Must be a valid GUID"
154
- ).optional().nullable(),
155
- fqdn: z.string().describe(
156
- "FQDN of the entity this schema extends. Use a wildcard (`*`) in place of the version number, for example `wix.ecom.*.order`. See [Supported objects](https://dev.wix.com/docs/api-reference/business-management/data-extension-schema/introduction#supported-objects) for valid FQDNs."
157
- ).max(255).optional().nullable(),
158
- namespace: z.string().describe(
159
- "Namespace for this schema. For example, an app creating schemas might use their app name as a namespace.\nWhen a site owner creates a user-defined schema, the namespace is: `_user_fields`."
160
- ).max(164).optional().nullable(),
161
- jsonSchema: z.record(z.string(), z.any()).describe(
162
- 'Schema definition in [JSON schema format](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/the-json-schema) with the following [vocab](https://docs.json-everything.net/schema/vocabs/) extension:\n```\n{\n"$schema": "https://json-schema.org/draft/2020-12/schema",\n"$id": "https://wixapis.com/v1/json-schema/extensions",\n"$vocabulary": {\n"https://wixapis.com/v1/json-schema/extensions/vocab/data-extensions": true\n},\n"$dynamicAnchor": "meta",\n"title": "Wix\' data-extensions vocabulary meta schema",\n"type": [\n"object",\n"boolean"\n],\n"properties": {\n"x-wix-permissions": {\n"type": "object",\n"description": "list of identity types that are allowed reading schema properties",\n"properties": {\n"read": {\n"type": "array",\n"items": {\n"type": "string",\n"enum": [\n"apps",\n"owning-app",\n"users",\n"users-of-users"\n]\n}\n},\n"write": {\n"type": "array",\n"items": {\n"type": "string",\n"enum": [\n"apps",\n"owning-app",\n"users",\n"users-of-users"\n]\n}\n}\n}\n},\n"x-wix-display": {\n"type": "object",\n"description": "field display properties",\n"schema": {\n"properties": {\n"placeholder": {\n"type": "string",\n"maxLength": 255,\n"description": "placeholder text for input fields"\n},\n"label": {\n"type": "string",\n"maxLength": 255,\n"description": "label of the input fields"\n},\n"hint": {\n"type": "string",\n"maxLength": 255,\n"description": "a short explanation that appears next to the input field"\n}\n}\n}\n}\n}\n}\n```'
163
- ).optional().nullable(),
164
- _updatedDate: z.date().describe("Date and time the schema was last updated.").optional().nullable(),
165
- _createdDate: z.date().describe("Date and time the schema was created.").optional().nullable(),
166
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
167
- "Revision number, which increments by 1 each time the schema is updated. To prevent conflicting changes, the existing revision must be used when updating a schema."
168
- ).optional().nullable(),
169
- maxLimitBytes: z.number().int().describe("Maximum allowed schema size in bytes.").optional().nullable(),
170
- currentSizeBytes: z.number().int().describe("Current schema size in bytes.").optional().nullable()
171
- }).describe("Updated schema.").optional()
172
- });
173
- export {
174
- CreateDataExtensionSchemaRequest,
175
- CreateDataExtensionSchemaResponse,
176
- DeleteByWhiteListedMetaSiteRequest,
177
- DeleteByWhiteListedMetaSiteResponse,
178
- DeleteUserDefinedFieldsRequest,
179
- DeleteUserDefinedFieldsResponse,
180
- ListDataExtensionSchemasRequest,
181
- ListDataExtensionSchemasResponse,
182
- UpdateDataExtensionSchemaRequest,
183
- UpdateDataExtensionSchemaResponse
184
- };
185
- //# sourceMappingURL=schemas.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/data-extensions-v1-data-extension-schema-schemas.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const CreateDataExtensionSchemaRequest = /*#__PURE__*/ z.object({\n dataExtensionSchema: z\n .object({\n _id: z\n .string()\n .describe('Schema 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 fqdn: z\n .string()\n .describe(\n 'FQDN of the entity this schema extends. Use a wildcard (`*`) in place of the version number, for example `wix.ecom.*.order`. See [Supported objects](https://dev.wix.com/docs/api-reference/business-management/data-extension-schema/introduction#supported-objects) for valid FQDNs.'\n )\n .max(255),\n namespace: z\n .string()\n .describe(\n 'Namespace for this schema. For example, an app creating schemas might use their app name as a namespace.\\nWhen a site owner creates a user-defined schema, the namespace is: `_user_fields`.'\n )\n .max(164),\n jsonSchema: z\n .record(z.string(), z.any())\n .describe(\n 'Schema definition in [JSON schema format](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/the-json-schema) with the following [vocab](https://docs.json-everything.net/schema/vocabs/) extension:\\n```\\n{\\n\"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\\n\"$id\": \"https://wixapis.com/v1/json-schema/extensions\",\\n\"$vocabulary\": {\\n\"https://wixapis.com/v1/json-schema/extensions/vocab/data-extensions\": true\\n},\\n\"$dynamicAnchor\": \"meta\",\\n\"title\": \"Wix\\' data-extensions vocabulary meta schema\",\\n\"type\": [\\n\"object\",\\n\"boolean\"\\n],\\n\"properties\": {\\n\"x-wix-permissions\": {\\n\"type\": \"object\",\\n\"description\": \"list of identity types that are allowed reading schema properties\",\\n\"properties\": {\\n\"read\": {\\n\"type\": \"array\",\\n\"items\": {\\n\"type\": \"string\",\\n\"enum\": [\\n\"apps\",\\n\"owning-app\",\\n\"users\",\\n\"users-of-users\"\\n]\\n}\\n},\\n\"write\": {\\n\"type\": \"array\",\\n\"items\": {\\n\"type\": \"string\",\\n\"enum\": [\\n\"apps\",\\n\"owning-app\",\\n\"users\",\\n\"users-of-users\"\\n]\\n}\\n}\\n}\\n},\\n\"x-wix-display\": {\\n\"type\": \"object\",\\n\"description\": \"field display properties\",\\n\"schema\": {\\n\"properties\": {\\n\"placeholder\": {\\n\"type\": \"string\",\\n\"maxLength\": 255,\\n\"description\": \"placeholder text for input fields\"\\n},\\n\"label\": {\\n\"type\": \"string\",\\n\"maxLength\": 255,\\n\"description\": \"label of the input fields\"\\n},\\n\"hint\": {\\n\"type\": \"string\",\\n\"maxLength\": 255,\\n\"description\": \"a short explanation that appears next to the input field\"\\n}\\n}\\n}\\n}\\n}\\n}\\n```'\n ),\n _updatedDate: z\n .date()\n .describe('Date and time the schema was last updated.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the schema was created.')\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the schema is updated. To prevent conflicting changes, the existing revision must be used when updating a schema.'\n )\n .optional()\n .nullable(),\n maxLimitBytes: z\n .number()\n .int()\n .describe('Maximum allowed schema size in bytes.')\n .optional()\n .nullable(),\n currentSizeBytes: z\n .number()\n .int()\n .describe('Current schema size in bytes.')\n .optional()\n .nullable(),\n })\n .describe('Schema to create.'),\n});\nexport const CreateDataExtensionSchemaResponse = /*#__PURE__*/ z.object({\n _id: z\n .string()\n .describe('Schema 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 fqdn: z\n .string()\n .describe(\n 'FQDN of the entity this schema extends. Use a wildcard (`*`) in place of the version number, for example `wix.ecom.*.order`. See [Supported objects](https://dev.wix.com/docs/api-reference/business-management/data-extension-schema/introduction#supported-objects) for valid FQDNs.'\n )\n .max(255)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n 'Namespace for this schema. For example, an app creating schemas might use their app name as a namespace.\\nWhen a site owner creates a user-defined schema, the namespace is: `_user_fields`.'\n )\n .max(164)\n .optional()\n .nullable(),\n jsonSchema: z\n .record(z.string(), z.any())\n .describe(\n 'Schema definition in [JSON schema format](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/the-json-schema) with the following [vocab](https://docs.json-everything.net/schema/vocabs/) extension:\\n```\\n{\\n\"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\\n\"$id\": \"https://wixapis.com/v1/json-schema/extensions\",\\n\"$vocabulary\": {\\n\"https://wixapis.com/v1/json-schema/extensions/vocab/data-extensions\": true\\n},\\n\"$dynamicAnchor\": \"meta\",\\n\"title\": \"Wix\\' data-extensions vocabulary meta schema\",\\n\"type\": [\\n\"object\",\\n\"boolean\"\\n],\\n\"properties\": {\\n\"x-wix-permissions\": {\\n\"type\": \"object\",\\n\"description\": \"list of identity types that are allowed reading schema properties\",\\n\"properties\": {\\n\"read\": {\\n\"type\": \"array\",\\n\"items\": {\\n\"type\": \"string\",\\n\"enum\": [\\n\"apps\",\\n\"owning-app\",\\n\"users\",\\n\"users-of-users\"\\n]\\n}\\n},\\n\"write\": {\\n\"type\": \"array\",\\n\"items\": {\\n\"type\": \"string\",\\n\"enum\": [\\n\"apps\",\\n\"owning-app\",\\n\"users\",\\n\"users-of-users\"\\n]\\n}\\n}\\n}\\n},\\n\"x-wix-display\": {\\n\"type\": \"object\",\\n\"description\": \"field display properties\",\\n\"schema\": {\\n\"properties\": {\\n\"placeholder\": {\\n\"type\": \"string\",\\n\"maxLength\": 255,\\n\"description\": \"placeholder text for input fields\"\\n},\\n\"label\": {\\n\"type\": \"string\",\\n\"maxLength\": 255,\\n\"description\": \"label of the input fields\"\\n},\\n\"hint\": {\\n\"type\": \"string\",\\n\"maxLength\": 255,\\n\"description\": \"a short explanation that appears next to the input field\"\\n}\\n}\\n}\\n}\\n}\\n}\\n```'\n )\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the schema was last updated.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the schema was created.')\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the schema is updated. To prevent conflicting changes, the existing revision must be used when updating a schema.'\n )\n .optional()\n .nullable(),\n maxLimitBytes: z\n .number()\n .int()\n .describe('Maximum allowed schema size in bytes.')\n .optional()\n .nullable(),\n currentSizeBytes: z\n .number()\n .int()\n .describe('Current schema size in bytes.')\n .optional()\n .nullable(),\n});\nexport const UpdateDataExtensionSchemaRequest = /*#__PURE__*/ z.object({\n dataExtensionSchema: z\n .object({\n _id: z\n .string()\n .describe('Schema 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 fqdn: z\n .string()\n .describe(\n 'FQDN of the entity this schema extends. Use a wildcard (`*`) in place of the version number, for example `wix.ecom.*.order`. See [Supported objects](https://dev.wix.com/docs/api-reference/business-management/data-extension-schema/introduction#supported-objects) for valid FQDNs.'\n )\n .max(255)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n 'Namespace for this schema. For example, an app creating schemas might use their app name as a namespace.\\nWhen a site owner creates a user-defined schema, the namespace is: `_user_fields`.'\n )\n .max(164)\n .optional()\n .nullable(),\n jsonSchema: z\n .record(z.string(), z.any())\n .describe(\n 'Schema definition in [JSON schema format](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/the-json-schema) with the following [vocab](https://docs.json-everything.net/schema/vocabs/) extension:\\n```\\n{\\n\"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\\n\"$id\": \"https://wixapis.com/v1/json-schema/extensions\",\\n\"$vocabulary\": {\\n\"https://wixapis.com/v1/json-schema/extensions/vocab/data-extensions\": true\\n},\\n\"$dynamicAnchor\": \"meta\",\\n\"title\": \"Wix\\' data-extensions vocabulary meta schema\",\\n\"type\": [\\n\"object\",\\n\"boolean\"\\n],\\n\"properties\": {\\n\"x-wix-permissions\": {\\n\"type\": \"object\",\\n\"description\": \"list of identity types that are allowed reading schema properties\",\\n\"properties\": {\\n\"read\": {\\n\"type\": \"array\",\\n\"items\": {\\n\"type\": \"string\",\\n\"enum\": [\\n\"apps\",\\n\"owning-app\",\\n\"users\",\\n\"users-of-users\"\\n]\\n}\\n},\\n\"write\": {\\n\"type\": \"array\",\\n\"items\": {\\n\"type\": \"string\",\\n\"enum\": [\\n\"apps\",\\n\"owning-app\",\\n\"users\",\\n\"users-of-users\"\\n]\\n}\\n}\\n}\\n},\\n\"x-wix-display\": {\\n\"type\": \"object\",\\n\"description\": \"field display properties\",\\n\"schema\": {\\n\"properties\": {\\n\"placeholder\": {\\n\"type\": \"string\",\\n\"maxLength\": 255,\\n\"description\": \"placeholder text for input fields\"\\n},\\n\"label\": {\\n\"type\": \"string\",\\n\"maxLength\": 255,\\n\"description\": \"label of the input fields\"\\n},\\n\"hint\": {\\n\"type\": \"string\",\\n\"maxLength\": 255,\\n\"description\": \"a short explanation that appears next to the input field\"\\n}\\n}\\n}\\n}\\n}\\n}\\n```'\n ),\n _updatedDate: z\n .date()\n .describe('Date and time the schema was last updated.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the schema was created.')\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the schema is updated. To prevent conflicting changes, the existing revision must be used when updating a schema.'\n ),\n maxLimitBytes: z\n .number()\n .int()\n .describe('Maximum allowed schema size in bytes.')\n .optional()\n .nullable(),\n currentSizeBytes: z\n .number()\n .int()\n .describe('Current schema size in bytes.')\n .optional()\n .nullable(),\n })\n .describe('Schema to update.'),\n});\nexport const UpdateDataExtensionSchemaResponse = /*#__PURE__*/ z.object({\n dataExtensionSchema: z\n .object({\n _id: z\n .string()\n .describe('Schema 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 fqdn: z\n .string()\n .describe(\n 'FQDN of the entity this schema extends. Use a wildcard (`*`) in place of the version number, for example `wix.ecom.*.order`. See [Supported objects](https://dev.wix.com/docs/api-reference/business-management/data-extension-schema/introduction#supported-objects) for valid FQDNs.'\n )\n .max(255)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n 'Namespace for this schema. For example, an app creating schemas might use their app name as a namespace.\\nWhen a site owner creates a user-defined schema, the namespace is: `_user_fields`.'\n )\n .max(164)\n .optional()\n .nullable(),\n jsonSchema: z\n .record(z.string(), z.any())\n .describe(\n 'Schema definition in [JSON schema format](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/the-json-schema) with the following [vocab](https://docs.json-everything.net/schema/vocabs/) extension:\\n```\\n{\\n\"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\\n\"$id\": \"https://wixapis.com/v1/json-schema/extensions\",\\n\"$vocabulary\": {\\n\"https://wixapis.com/v1/json-schema/extensions/vocab/data-extensions\": true\\n},\\n\"$dynamicAnchor\": \"meta\",\\n\"title\": \"Wix\\' data-extensions vocabulary meta schema\",\\n\"type\": [\\n\"object\",\\n\"boolean\"\\n],\\n\"properties\": {\\n\"x-wix-permissions\": {\\n\"type\": \"object\",\\n\"description\": \"list of identity types that are allowed reading schema properties\",\\n\"properties\": {\\n\"read\": {\\n\"type\": \"array\",\\n\"items\": {\\n\"type\": \"string\",\\n\"enum\": [\\n\"apps\",\\n\"owning-app\",\\n\"users\",\\n\"users-of-users\"\\n]\\n}\\n},\\n\"write\": {\\n\"type\": \"array\",\\n\"items\": {\\n\"type\": \"string\",\\n\"enum\": [\\n\"apps\",\\n\"owning-app\",\\n\"users\",\\n\"users-of-users\"\\n]\\n}\\n}\\n}\\n},\\n\"x-wix-display\": {\\n\"type\": \"object\",\\n\"description\": \"field display properties\",\\n\"schema\": {\\n\"properties\": {\\n\"placeholder\": {\\n\"type\": \"string\",\\n\"maxLength\": 255,\\n\"description\": \"placeholder text for input fields\"\\n},\\n\"label\": {\\n\"type\": \"string\",\\n\"maxLength\": 255,\\n\"description\": \"label of the input fields\"\\n},\\n\"hint\": {\\n\"type\": \"string\",\\n\"maxLength\": 255,\\n\"description\": \"a short explanation that appears next to the input field\"\\n}\\n}\\n}\\n}\\n}\\n}\\n```'\n )\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the schema was last updated.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the schema was created.')\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the schema is updated. To prevent conflicting changes, the existing revision must be used when updating a schema.'\n )\n .optional()\n .nullable(),\n maxLimitBytes: z\n .number()\n .int()\n .describe('Maximum allowed schema size in bytes.')\n .optional()\n .nullable(),\n currentSizeBytes: z\n .number()\n .int()\n .describe('Current schema size in bytes.')\n .optional()\n .nullable(),\n })\n .describe('Updated schema.')\n .optional(),\n});\nexport const ListDataExtensionSchemasRequest = /*#__PURE__*/ z.object({\n fqdn: z\n .string()\n .describe(\n '[Fully qualified domain name](https://dev.wix.com/docs/rest/articles/getting-started/fqdns).'\n )\n .max(255),\n options: z\n .object({\n namespaces: z.array(z.string()).max(100).optional(),\n fields: z\n .array(z.enum(['UNKNOWN_REQUESTED_FIELD', 'ARCHIVED']))\n .max(5)\n .optional(),\n extensionPoints: z.array(z.string()).max(20).optional(),\n })\n .optional(),\n});\nexport const ListDataExtensionSchemasResponse = /*#__PURE__*/ z.object({\n dataExtensionSchemas: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Schema 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 fqdn: z\n .string()\n .describe(\n 'FQDN of the entity this schema extends. Use a wildcard (`*`) in place of the version number, for example `wix.ecom.*.order`. See [Supported objects](https://dev.wix.com/docs/api-reference/business-management/data-extension-schema/introduction#supported-objects) for valid FQDNs.'\n )\n .max(255)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n 'Namespace for this schema. For example, an app creating schemas might use their app name as a namespace.\\nWhen a site owner creates a user-defined schema, the namespace is: `_user_fields`.'\n )\n .max(164)\n .optional()\n .nullable(),\n jsonSchema: z\n .record(z.string(), z.any())\n .describe(\n 'Schema definition in [JSON schema format](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/the-json-schema) with the following [vocab](https://docs.json-everything.net/schema/vocabs/) extension:\\n```\\n{\\n\"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\\n\"$id\": \"https://wixapis.com/v1/json-schema/extensions\",\\n\"$vocabulary\": {\\n\"https://wixapis.com/v1/json-schema/extensions/vocab/data-extensions\": true\\n},\\n\"$dynamicAnchor\": \"meta\",\\n\"title\": \"Wix\\' data-extensions vocabulary meta schema\",\\n\"type\": [\\n\"object\",\\n\"boolean\"\\n],\\n\"properties\": {\\n\"x-wix-permissions\": {\\n\"type\": \"object\",\\n\"description\": \"list of identity types that are allowed reading schema properties\",\\n\"properties\": {\\n\"read\": {\\n\"type\": \"array\",\\n\"items\": {\\n\"type\": \"string\",\\n\"enum\": [\\n\"apps\",\\n\"owning-app\",\\n\"users\",\\n\"users-of-users\"\\n]\\n}\\n},\\n\"write\": {\\n\"type\": \"array\",\\n\"items\": {\\n\"type\": \"string\",\\n\"enum\": [\\n\"apps\",\\n\"owning-app\",\\n\"users\",\\n\"users-of-users\"\\n]\\n}\\n}\\n}\\n},\\n\"x-wix-display\": {\\n\"type\": \"object\",\\n\"description\": \"field display properties\",\\n\"schema\": {\\n\"properties\": {\\n\"placeholder\": {\\n\"type\": \"string\",\\n\"maxLength\": 255,\\n\"description\": \"placeholder text for input fields\"\\n},\\n\"label\": {\\n\"type\": \"string\",\\n\"maxLength\": 255,\\n\"description\": \"label of the input fields\"\\n},\\n\"hint\": {\\n\"type\": \"string\",\\n\"maxLength\": 255,\\n\"description\": \"a short explanation that appears next to the input field\"\\n}\\n}\\n}\\n}\\n}\\n}\\n```'\n )\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the schema was last updated.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the schema was created.')\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the schema is updated. To prevent conflicting changes, the existing revision must be used when updating a schema.'\n )\n .optional()\n .nullable(),\n maxLimitBytes: z\n .number()\n .int()\n .describe('Maximum allowed schema size in bytes.')\n .optional()\n .nullable(),\n currentSizeBytes: z\n .number()\n .int()\n .describe('Current schema size in bytes.')\n .optional()\n .nullable(),\n })\n )\n .optional(),\n});\nexport const DeleteByWhiteListedMetaSiteRequest = /*#__PURE__*/ z.object({\n metaSiteId: z\n .string()\n .describe('Meta site 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 DeleteByWhiteListedMetaSiteResponse = /*#__PURE__*/ z.object({\n hasMore: z.boolean().describe('has more').optional(),\n});\nexport const DeleteUserDefinedFieldsRequest = /*#__PURE__*/ z.object({\n dataExtensionSchemaId: z\n .string()\n .describe('Schema 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: z.object({ fieldsToDelete: z.array(z.string()).min(1).max(10) }),\n});\nexport const DeleteUserDefinedFieldsResponse = /*#__PURE__*/ z.object({\n dataExtensionSchema: z\n .object({\n _id: z\n .string()\n .describe('Schema 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 fqdn: z\n .string()\n .describe(\n 'FQDN of the entity this schema extends. Use a wildcard (`*`) in place of the version number, for example `wix.ecom.*.order`. See [Supported objects](https://dev.wix.com/docs/api-reference/business-management/data-extension-schema/introduction#supported-objects) for valid FQDNs.'\n )\n .max(255)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n 'Namespace for this schema. For example, an app creating schemas might use their app name as a namespace.\\nWhen a site owner creates a user-defined schema, the namespace is: `_user_fields`.'\n )\n .max(164)\n .optional()\n .nullable(),\n jsonSchema: z\n .record(z.string(), z.any())\n .describe(\n 'Schema definition in [JSON schema format](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/the-json-schema) with the following [vocab](https://docs.json-everything.net/schema/vocabs/) extension:\\n```\\n{\\n\"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\\n\"$id\": \"https://wixapis.com/v1/json-schema/extensions\",\\n\"$vocabulary\": {\\n\"https://wixapis.com/v1/json-schema/extensions/vocab/data-extensions\": true\\n},\\n\"$dynamicAnchor\": \"meta\",\\n\"title\": \"Wix\\' data-extensions vocabulary meta schema\",\\n\"type\": [\\n\"object\",\\n\"boolean\"\\n],\\n\"properties\": {\\n\"x-wix-permissions\": {\\n\"type\": \"object\",\\n\"description\": \"list of identity types that are allowed reading schema properties\",\\n\"properties\": {\\n\"read\": {\\n\"type\": \"array\",\\n\"items\": {\\n\"type\": \"string\",\\n\"enum\": [\\n\"apps\",\\n\"owning-app\",\\n\"users\",\\n\"users-of-users\"\\n]\\n}\\n},\\n\"write\": {\\n\"type\": \"array\",\\n\"items\": {\\n\"type\": \"string\",\\n\"enum\": [\\n\"apps\",\\n\"owning-app\",\\n\"users\",\\n\"users-of-users\"\\n]\\n}\\n}\\n}\\n},\\n\"x-wix-display\": {\\n\"type\": \"object\",\\n\"description\": \"field display properties\",\\n\"schema\": {\\n\"properties\": {\\n\"placeholder\": {\\n\"type\": \"string\",\\n\"maxLength\": 255,\\n\"description\": \"placeholder text for input fields\"\\n},\\n\"label\": {\\n\"type\": \"string\",\\n\"maxLength\": 255,\\n\"description\": \"label of the input fields\"\\n},\\n\"hint\": {\\n\"type\": \"string\",\\n\"maxLength\": 255,\\n\"description\": \"a short explanation that appears next to the input field\"\\n}\\n}\\n}\\n}\\n}\\n}\\n```'\n )\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the schema was last updated.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the schema was created.')\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the schema is updated. To prevent conflicting changes, the existing revision must be used when updating a schema.'\n )\n .optional()\n .nullable(),\n maxLimitBytes: z\n .number()\n .int()\n .describe('Maximum allowed schema size in bytes.')\n .optional()\n .nullable(),\n currentSizeBytes: z\n .number()\n .int()\n .describe('Current schema size in bytes.')\n .optional()\n .nullable(),\n })\n .describe('Updated schema.')\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,mCAAiD,gBAAE,SAAO;AAAA,EACrE,qBACG,SAAO;AAAA,IACN,KACG,SAAO,EACP,SAAS,YAAY,EACrB;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,MACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,IAAI,GAAG;AAAA,IACV,WACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,IAAI,GAAG;AAAA,IACV,YACG,SAAS,SAAO,GAAK,MAAI,CAAC,EAC1B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