@wix/auto_sdk_multilingual_translation-schemas 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.context.d.ts +27 -0
  11. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.context.js +38 -0
  12. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.context.js.map +1 -0
  13. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.http.d.ts +52 -0
  14. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.http.js +339 -0
  15. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.http.js.map +1 -0
  16. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.meta.d.ts +29 -0
  17. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.meta.js +171 -0
  18. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.meta.js.map +1 -0
  19. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.public.d.ts +98 -0
  20. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.public.js +104 -0
  21. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.public.js.map +1 -0
  22. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.types.d.ts +697 -0
  23. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.types.js +148 -0
  24. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.types.js.map +1 -0
  25. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.universal.d.ts +1049 -0
  26. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.universal.js +498 -0
  27. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.context.d.ts +27 -0
  39. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.context.js +27 -0
  40. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.context.js.map +1 -0
  41. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.http.d.ts +52 -0
  42. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.http.js +329 -0
  43. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.http.js.map +1 -0
  44. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.meta.d.ts +29 -0
  45. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.meta.js +138 -0
  46. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.meta.js.map +1 -0
  47. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.public.d.ts +98 -0
  48. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.public.js +86 -0
  49. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.public.js.map +1 -0
  50. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.types.d.ts +697 -0
  51. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.types.js +145 -0
  52. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.types.js.map +1 -0
  53. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.universal.d.ts +1049 -0
  54. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.universal.js +465 -0
  55. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.context.d.ts +27 -0
  66. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.context.js +38 -0
  67. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.context.js.map +1 -0
  68. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.http.d.ts +52 -0
  69. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.http.js +339 -0
  70. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.http.js.map +1 -0
  71. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.meta.d.ts +29 -0
  72. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.meta.js +171 -0
  73. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.meta.js.map +1 -0
  74. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.public.d.ts +98 -0
  75. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.public.js +104 -0
  76. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.public.js.map +1 -0
  77. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.types.d.ts +697 -0
  78. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.types.js +148 -0
  79. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.types.js.map +1 -0
  80. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.universal.d.ts +1049 -0
  81. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.universal.js +498 -0
  82. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.context.d.ts +27 -0
  93. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.context.js +27 -0
  94. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.context.js.map +1 -0
  95. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.http.d.ts +52 -0
  96. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.http.js +329 -0
  97. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.http.js.map +1 -0
  98. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.meta.d.ts +29 -0
  99. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.meta.js +138 -0
  100. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.meta.js.map +1 -0
  101. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.public.d.ts +98 -0
  102. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.public.js +86 -0
  103. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.public.js.map +1 -0
  104. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.types.d.ts +697 -0
  105. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.types.js +145 -0
  106. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.types.js.map +1 -0
  107. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.universal.d.ts +1049 -0
  108. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.universal.js +465 -0
  109. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,171 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.listSiteSchemas = exports.querySchemas = exports.deleteSchema = exports.updateSchema = exports.getSchemaByKey = exports.getSchema = exports.createSchema = void 0;
27
+ const ambassadorWixMultilingualTranslationV1Schema = __importStar(require("./multilingual-translation-v1-schema-translation-schemas.http.js"));
28
+ function createSchema() {
29
+ const payload = {};
30
+ const getRequestOptions = ambassadorWixMultilingualTranslationV1Schema.createSchema(payload);
31
+ const getUrl = (context) => {
32
+ const { url } = getRequestOptions(context);
33
+ return url;
34
+ };
35
+ return {
36
+ getUrl,
37
+ httpMethod: 'POST',
38
+ path: '/v1/schemas',
39
+ pathParams: {},
40
+ __requestType: null,
41
+ __originalRequestType: null,
42
+ __responseType: null,
43
+ __originalResponseType: null,
44
+ };
45
+ }
46
+ exports.createSchema = createSchema;
47
+ function getSchema() {
48
+ const payload = { schemaId: ':schemaId' };
49
+ const getRequestOptions = ambassadorWixMultilingualTranslationV1Schema.getSchema(payload);
50
+ const getUrl = (context) => {
51
+ const { url } = getRequestOptions(context);
52
+ return url;
53
+ };
54
+ return {
55
+ getUrl,
56
+ httpMethod: 'GET',
57
+ path: '/v1/schemas/{schemaId}',
58
+ pathParams: { schemaId: 'schemaId' },
59
+ __requestType: null,
60
+ __originalRequestType: null,
61
+ __responseType: null,
62
+ __originalResponseType: null,
63
+ };
64
+ }
65
+ exports.getSchema = getSchema;
66
+ function getSchemaByKey() {
67
+ const payload = {
68
+ key: {
69
+ appId: ':keyAppId',
70
+ entityType: ':keyEntityType',
71
+ scope: ':keyScope',
72
+ },
73
+ };
74
+ const getRequestOptions = ambassadorWixMultilingualTranslationV1Schema.getSchemaByKey(payload);
75
+ const getUrl = (context) => {
76
+ const { url } = getRequestOptions(context);
77
+ return url;
78
+ };
79
+ return {
80
+ getUrl,
81
+ httpMethod: 'GET',
82
+ path: '/v1/schemas/app-id/{key.appId}/entity-type/{key.entityType}/scope/{key.scope}',
83
+ pathParams: {
84
+ keyAppId: 'keyAppId',
85
+ keyEntityType: 'keyEntityType',
86
+ keyScope: 'keyScope',
87
+ },
88
+ __requestType: null,
89
+ __originalRequestType: null,
90
+ __responseType: null,
91
+ __originalResponseType: null,
92
+ };
93
+ }
94
+ exports.getSchemaByKey = getSchemaByKey;
95
+ function updateSchema() {
96
+ const payload = { schema: { id: ':schemaId' } };
97
+ const getRequestOptions = ambassadorWixMultilingualTranslationV1Schema.updateSchema(payload);
98
+ const getUrl = (context) => {
99
+ const { url } = getRequestOptions(context);
100
+ return url;
101
+ };
102
+ return {
103
+ getUrl,
104
+ httpMethod: 'PATCH',
105
+ path: '/v1/schemas/{schema.id}',
106
+ pathParams: { schemaId: 'schemaId' },
107
+ __requestType: null,
108
+ __originalRequestType: null,
109
+ __responseType: null,
110
+ __originalResponseType: null,
111
+ };
112
+ }
113
+ exports.updateSchema = updateSchema;
114
+ function deleteSchema() {
115
+ const payload = { schemaId: ':schemaId' };
116
+ const getRequestOptions = ambassadorWixMultilingualTranslationV1Schema.deleteSchema(payload);
117
+ const getUrl = (context) => {
118
+ const { url } = getRequestOptions(context);
119
+ return url;
120
+ };
121
+ return {
122
+ getUrl,
123
+ httpMethod: 'DELETE',
124
+ path: '/v1/schemas/{schemaId}',
125
+ pathParams: { schemaId: 'schemaId' },
126
+ __requestType: null,
127
+ __originalRequestType: null,
128
+ __responseType: null,
129
+ __originalResponseType: null,
130
+ };
131
+ }
132
+ exports.deleteSchema = deleteSchema;
133
+ function querySchemas() {
134
+ const payload = {};
135
+ const getRequestOptions = ambassadorWixMultilingualTranslationV1Schema.querySchemas(payload);
136
+ const getUrl = (context) => {
137
+ const { url } = getRequestOptions(context);
138
+ return url;
139
+ };
140
+ return {
141
+ getUrl,
142
+ httpMethod: 'POST',
143
+ path: '/v1/schemas/query',
144
+ pathParams: {},
145
+ __requestType: null,
146
+ __originalRequestType: null,
147
+ __responseType: null,
148
+ __originalResponseType: null,
149
+ };
150
+ }
151
+ exports.querySchemas = querySchemas;
152
+ function listSiteSchemas() {
153
+ const payload = {};
154
+ const getRequestOptions = ambassadorWixMultilingualTranslationV1Schema.listSiteSchemas(payload);
155
+ const getUrl = (context) => {
156
+ const { url } = getRequestOptions(context);
157
+ return url;
158
+ };
159
+ return {
160
+ getUrl,
161
+ httpMethod: 'GET',
162
+ path: '/v1/schemas/site',
163
+ pathParams: {},
164
+ __requestType: null,
165
+ __originalRequestType: null,
166
+ __responseType: null,
167
+ __originalResponseType: null,
168
+ };
169
+ }
170
+ exports.listSiteSchemas = listSiteSchemas;
171
+ //# sourceMappingURL=multilingual-translation-v1-schema-translation-schemas.meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multilingual-translation-v1-schema-translation-schemas.meta.js","sourceRoot":"","sources":["../../../src/multilingual-translation-v1-schema-translation-schemas.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+IAAiI;AAsBjI,SAAgB,YAAY;IAU1B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,4CAA4C,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IAErE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,aAAa;QACnB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA9BD,oCA8BC;AAED,SAAgB,SAAS;IAUvB,MAAM,OAAO,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAS,CAAC;IAEjD,MAAM,iBAAiB,GACrB,4CAA4C,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IAElE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE,wBAAwB;QAC9B,UAAU,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE;QACpC,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,c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AC;AA9BD,oCA8BC;AAED,SAAgB,eAAe;IAU7B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,4CAA4C,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IAExE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE,kBAAkB;QACxB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA9BD,0CA8BC"}
@@ -0,0 +1,98 @@
1
+ import { EventDefinition, HttpClient } from '@wix/sdk-types';
2
+ import { GetSchemaByKeyIdentifiers, GetSchemaByKeyResponse, GetSchemaByKeyResponseNonNullableFields, ListSiteSchemasOptions, ListSiteSchemasResponse, ListSiteSchemasResponseNonNullableFields, QuerySchemasOptions, Schema, SchemaCreatedEnvelope, SchemaDeletedEnvelope, SchemaNonNullableFields, SchemaUpdatedEnvelope, SchemasQueryBuilder, UpdateSchema } from './multilingual-translation-v1-schema-translation-schemas.universal.js';
3
+ export declare const __metadata: {
4
+ PACKAGE_NAME: string;
5
+ };
6
+ export declare function createSchema(httpClient: HttpClient): CreateSchemaSignature;
7
+ interface CreateSchemaSignature {
8
+ /**
9
+ * Creates a translation schema.
10
+ * @param - Translation schema to create.
11
+ * @returns Newly created translation schema.
12
+ */
13
+ (schema: Schema): Promise<Schema & SchemaNonNullableFields>;
14
+ }
15
+ export declare function getSchema(httpClient: HttpClient): GetSchemaSignature;
16
+ interface GetSchemaSignature {
17
+ /**
18
+ * Retrieves a translation schema by ID.
19
+ * @param - ID of the translation schema to retrieve.
20
+ * @returns The requested translation schema.
21
+ */
22
+ (schemaId: string): Promise<Schema & SchemaNonNullableFields>;
23
+ }
24
+ export declare function getSchemaByKey(httpClient: HttpClient): GetSchemaByKeySignature;
25
+ interface GetSchemaByKeySignature {
26
+ /**
27
+ * Retrieves a translation schema by key.
28
+ */
29
+ (identifiers: GetSchemaByKeyIdentifiers): Promise<GetSchemaByKeyResponse & GetSchemaByKeyResponseNonNullableFields>;
30
+ }
31
+ export declare function updateSchema(httpClient: HttpClient): UpdateSchemaSignature;
32
+ interface UpdateSchemaSignature {
33
+ /**
34
+ * Updates a translation schema.
35
+ *
36
+ * To remove a field, pass the field key with an empty object as the value. For example:
37
+ *
38
+ * ```json
39
+ * {
40
+ * "fields": {
41
+ * "title": {}
42
+ * }
43
+ * }
44
+ * ```
45
+ *
46
+ * <blockquote class="caution">
47
+ * <strong>Caution:</strong>
48
+ *
49
+ * Removing a schema field makes the corresponding content field unavailable.
50
+ * </blockquote>
51
+ * @param - Translation schema ID.
52
+ * @returns Updated Schema.
53
+ */
54
+ (_id: string | null, schema: UpdateSchema): Promise<Schema & SchemaNonNullableFields>;
55
+ }
56
+ export declare function deleteSchema(httpClient: HttpClient): DeleteSchemaSignature;
57
+ interface DeleteSchemaSignature {
58
+ /**
59
+ * Deletes a translation schema.
60
+ * @param - ID of the translation schema to delete.
61
+ */
62
+ (schemaId: string): Promise<void>;
63
+ }
64
+ export declare function querySchemas(httpClient: HttpClient): QuerySchemasSignature;
65
+ interface QuerySchemasSignature {
66
+ /**
67
+ * Creates a query to retrieve a list of schemas.
68
+ *
69
+ * > **Note:**
70
+ * >
71
+ * > This method can retrieve all schemas with a `GLOBAL` scope and schemas with a `SITE` scope for the site the API request is authorized to access.
72
+ *
73
+ * The `querySchemas()` function builds a query to retrieve a list of translation schemas and returns a `SchemasQueryBuilder` object.
74
+ *
75
+ * The returned object contains the query definition, which is used to run the query using the [`find()`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-schema/schemas-query-builder/find) function.
76
+ *
77
+ * You can refine the query by chaining `SchemasQueryBuilder` functions onto the query. `SchemasQueryBuilder` functions enable you to filter, sort, and control the results that `querySchemas()` returns.
78
+ *
79
+ * `querySchemas()` runs with the following `SchemasQueryBuilder` defaults which you can override:
80
+ *
81
+ * + [`limit(100)`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-schema/schemas-query-builder/limit)
82
+ * + [`ascending('_id')`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-schema/schemas-query-builder/ascending)
83
+ *
84
+ * The following `SchemasQueryBuilder` functions are supported for `querySchemas()`. For a full description of the operations object, see the object returned for the [`items`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-schema/schemas-query-result/items) property in `SchemasQueryResult`.
85
+ */
86
+ (options?: QuerySchemasOptions | undefined): SchemasQueryBuilder;
87
+ }
88
+ export declare function listSiteSchemas(httpClient: HttpClient): ListSiteSchemasSignature;
89
+ interface ListSiteSchemasSignature {
90
+ /**
91
+ * Retrieves a list of all translation schemas associated with a site, regardless of which app created them.
92
+ */
93
+ (options?: ListSiteSchemasOptions | undefined): Promise<ListSiteSchemasResponse & ListSiteSchemasResponseNonNullableFields>;
94
+ }
95
+ export declare const onSchemaCreated: EventDefinition<SchemaCreatedEnvelope, "wix.multilingual.translation.v1.schema_created">;
96
+ export declare const onSchemaDeleted: EventDefinition<SchemaDeletedEnvelope, "wix.multilingual.translation.v1.schema_deleted">;
97
+ export declare const onSchemaUpdated: EventDefinition<SchemaUpdatedEnvelope, "wix.multilingual.translation.v1.schema_updated">;
98
+ export { ActionEvent, Asset, BaseEventMetadata, CreateSchemaRequest, CreateSchemaResponse, CreateSchemaResponseNonNullableFields, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteContext, DeleteSchemaRequest, DeleteSchemaResponse, DeleteStatus, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, FieldType, GetSchemaByKeyIdentifiers, GetSchemaByKeyRequest, GetSchemaByKeyResponse, GetSchemaByKeyResponseNonNullableFields, GetSchemaRequest, GetSchemaResponse, GetSchemaResponseNonNullableFields, IdentificationData, IdentificationDataIdOneOf, ListSiteSchemasOptions, ListSiteSchemasRequest, ListSiteSchemasResponse, ListSiteSchemasResponseNonNullableFields, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Namespace, NamespaceChanged, PreviewFields, QuerySchemasOptions, QuerySchemasRequest, QuerySchemasResponse, QuerySchemasResponseNonNullableFields, RestoreInfo, Schema, SchemaCreatedEnvelope, SchemaDeletedEnvelope, SchemaField, SchemaKey, SchemaNonNullableFields, SchemaScope, SchemaUpdatedEnvelope, SchemasQueryBuilder, SchemasQueryResult, ServiceProvisioned, ServiceRemoved, SiteCreated, SiteCreatedContext, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SortOrder, Sorting, State, StudioAssigned, StudioUnassigned, UpdateSchema, UpdateSchemaRequest, UpdateSchemaResponse, UpdateSchemaResponseNonNullableFields, WebhookIdentityType, } from './multilingual-translation-v1-schema-translation-schemas.universal.js';
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebhookIdentityType = exports.State = exports.SortOrder = exports.SiteCreatedContext = exports.SchemaScope = exports.Namespace = exports.FieldType = exports.DeleteStatus = exports.onSchemaUpdated = exports.onSchemaDeleted = exports.onSchemaCreated = exports.listSiteSchemas = exports.querySchemas = exports.deleteSchema = exports.updateSchema = exports.getSchemaByKey = exports.getSchema = exports.createSchema = exports.__metadata = void 0;
4
+ const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
5
+ const float_1 = require("@wix/sdk-runtime/transformations/float");
6
+ const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
7
+ const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
8
+ const sdk_types_1 = require("@wix/sdk-types");
9
+ const multilingual_translation_v1_schema_translation_schemas_universal_js_1 = require("./multilingual-translation-v1-schema-translation-schemas.universal.js");
10
+ exports.__metadata = { PACKAGE_NAME: '@wix/multilingual' };
11
+ function createSchema(httpClient) {
12
+ return (schema) => (0, multilingual_translation_v1_schema_translation_schemas_universal_js_1.createSchema)(schema,
13
+ // @ts-ignore
14
+ { httpClient });
15
+ }
16
+ exports.createSchema = createSchema;
17
+ function getSchema(httpClient) {
18
+ return (schemaId) => (0, multilingual_translation_v1_schema_translation_schemas_universal_js_1.getSchema)(schemaId,
19
+ // @ts-ignore
20
+ { httpClient });
21
+ }
22
+ exports.getSchema = getSchema;
23
+ function getSchemaByKey(httpClient) {
24
+ return (identifiers) => (0, multilingual_translation_v1_schema_translation_schemas_universal_js_1.getSchemaByKey)(identifiers,
25
+ // @ts-ignore
26
+ { httpClient });
27
+ }
28
+ exports.getSchemaByKey = getSchemaByKey;
29
+ function updateSchema(httpClient) {
30
+ return (_id, schema) => (0, multilingual_translation_v1_schema_translation_schemas_universal_js_1.updateSchema)(_id, schema,
31
+ // @ts-ignore
32
+ { httpClient });
33
+ }
34
+ exports.updateSchema = updateSchema;
35
+ function deleteSchema(httpClient) {
36
+ return (schemaId) => (0, multilingual_translation_v1_schema_translation_schemas_universal_js_1.deleteSchema)(schemaId,
37
+ // @ts-ignore
38
+ { httpClient });
39
+ }
40
+ exports.deleteSchema = deleteSchema;
41
+ function querySchemas(httpClient) {
42
+ return (options) => (0, multilingual_translation_v1_schema_translation_schemas_universal_js_1.querySchemas)(options,
43
+ // @ts-ignore
44
+ { httpClient });
45
+ }
46
+ exports.querySchemas = querySchemas;
47
+ function listSiteSchemas(httpClient) {
48
+ return (options) => (0, multilingual_translation_v1_schema_translation_schemas_universal_js_1.listSiteSchemas)(options,
49
+ // @ts-ignore
50
+ { httpClient });
51
+ }
52
+ exports.listSiteSchemas = listSiteSchemas;
53
+ exports.onSchemaCreated = (0, sdk_types_1.EventDefinition)('wix.multilingual.translation.v1.schema_created', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
54
+ {
55
+ transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
56
+ paths: [
57
+ { path: 'entity.createdDate' },
58
+ { path: 'entity.updatedDate' },
59
+ { path: 'metadata.eventTime' },
60
+ ],
61
+ },
62
+ {
63
+ transformFn: float_1.transformRESTFloatToSDKFloat,
64
+ paths: [{ path: 'entity.fields.index' }],
65
+ },
66
+ ])))();
67
+ exports.onSchemaDeleted = (0, sdk_types_1.EventDefinition)('wix.multilingual.translation.v1.schema_deleted', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
68
+ {
69
+ transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
70
+ paths: [
71
+ { path: 'undefined.createdDate' },
72
+ { path: 'undefined.updatedDate' },
73
+ { path: 'metadata.eventTime' },
74
+ ],
75
+ },
76
+ {
77
+ transformFn: float_1.transformRESTFloatToSDKFloat,
78
+ paths: [{ path: 'undefined.fields.index' }],
79
+ },
80
+ ])))();
81
+ exports.onSchemaUpdated = (0, sdk_types_1.EventDefinition)('wix.multilingual.translation.v1.schema_updated', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
82
+ {
83
+ transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
84
+ paths: [
85
+ { path: 'entity.createdDate' },
86
+ { path: 'entity.updatedDate' },
87
+ { path: 'metadata.eventTime' },
88
+ ],
89
+ },
90
+ {
91
+ transformFn: float_1.transformRESTFloatToSDKFloat,
92
+ paths: [{ path: 'entity.fields.index' }],
93
+ },
94
+ ])))();
95
+ var multilingual_translation_v1_schema_translation_schemas_universal_js_2 = require("./multilingual-translation-v1-schema-translation-schemas.universal.js");
96
+ Object.defineProperty(exports, "DeleteStatus", { enumerable: true, get: function () { return multilingual_translation_v1_schema_translation_schemas_universal_js_2.DeleteStatus; } });
97
+ Object.defineProperty(exports, "FieldType", { enumerable: true, get: function () { return multilingual_translation_v1_schema_translation_schemas_universal_js_2.FieldType; } });
98
+ Object.defineProperty(exports, "Namespace", { enumerable: true, get: function () { return multilingual_translation_v1_schema_translation_schemas_universal_js_2.Namespace; } });
99
+ Object.defineProperty(exports, "SchemaScope", { enumerable: true, get: function () { return multilingual_translation_v1_schema_translation_schemas_universal_js_2.SchemaScope; } });
100
+ Object.defineProperty(exports, "SiteCreatedContext", { enumerable: true, get: function () { return multilingual_translation_v1_schema_translation_schemas_universal_js_2.SiteCreatedContext; } });
101
+ Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return multilingual_translation_v1_schema_translation_schemas_universal_js_2.SortOrder; } });
102
+ Object.defineProperty(exports, "State", { enumerable: true, get: function () { return multilingual_translation_v1_schema_translation_schemas_universal_js_2.State; } });
103
+ Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return multilingual_translation_v1_schema_translation_schemas_universal_js_2.WebhookIdentityType; } });
104
+ //# sourceMappingURL=multilingual-translation-v1-schema-translation-schemas.public.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multilingual-translation-v1-schema-translation-schemas.public.js","sourceRoot":"","sources":["../../../src/multilingual-translation-v1-schema-translation-schemas.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAClG,kEAAsF;AACtF,0EAAkG;AAClG,sFAAkF;AAClF,8CAA6D;AAC7D,+JAsB+E;AAElE,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC;AAEhE,SAAgB,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,MAAc,EAAE,EAAE,CACxB,IAAA,kFAAqB,EACnB,MAAM;IACN,aAAa;IACb,EAAE,UAAU,EAAE,CACf,C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