@relyio/sdk 0.2.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.
- package/CHANGELOG.md +13 -0
- package/LICENSE +201 -0
- package/README.md +314 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/chunk-2QUK2ZGD.js +738 -0
- package/dist/chunk-7W4MJXQ4.cjs +4429 -0
- package/dist/chunk-FJK7ZWKK.cjs +776 -0
- package/dist/chunk-HT6NFRM2.cjs +196 -0
- package/dist/chunk-I3ESNANB.js +177 -0
- package/dist/chunk-IY5LSKXU.js +3 -0
- package/dist/chunk-MWMSFIWN.cjs +17 -0
- package/dist/chunk-PPA2WWOH.cjs +4 -0
- package/dist/chunk-RJBIJ2ZK.js +4375 -0
- package/dist/chunk-XQ4QHWZE.js +13 -0
- package/dist/client/index.cjs +17 -0
- package/dist/client/index.d.cts +3 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.js +4 -0
- package/dist/define-schema-DHvUCKwj.d.cts +2101 -0
- package/dist/define-schema-DHvUCKwj.d.ts +2101 -0
- package/dist/index-B-KiFHbx.d.ts +2708 -0
- package/dist/index-BsUqCAu8.d.cts +7855 -0
- package/dist/index-BsUqCAu8.d.ts +7855 -0
- package/dist/index-DGWaawHt.d.cts +2708 -0
- package/dist/index.cjs +499 -0
- package/dist/index.d.cts +523 -0
- package/dist/index.d.ts +523 -0
- package/dist/index.js +148 -0
- package/dist/react/index.cjs +4 -0
- package/dist/react/index.d.cts +2 -0
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.js +3 -0
- package/dist/schema/index.cjs +157 -0
- package/dist/schema/index.d.cts +223 -0
- package/dist/schema/index.d.ts +223 -0
- package/dist/schema/index.js +4 -0
- package/dist/types/index.cjs +6 -0
- package/dist/types/index.d.cts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +3 -0
- package/dist/utils/index.cjs +81 -0
- package/dist/utils/index.d.cts +87 -0
- package/dist/utils/index.d.ts +87 -0
- package/dist/utils/index.js +4 -0
- package/package.json +159 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,499 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var chunkFJK7ZWKK_cjs = require('./chunk-FJK7ZWKK.cjs');
|
|
6
|
+
var chunk7W4MJXQ4_cjs = require('./chunk-7W4MJXQ4.cjs');
|
|
7
|
+
require('./chunk-PPA2WWOH.cjs');
|
|
8
|
+
var chunkHT6NFRM2_cjs = require('./chunk-HT6NFRM2.cjs');
|
|
9
|
+
var chunkMWMSFIWN_cjs = require('./chunk-MWMSFIWN.cjs');
|
|
10
|
+
|
|
11
|
+
/* RelyIO SDK - Built with ❤️ by the RelyIO Team */
|
|
12
|
+
|
|
13
|
+
// src/locale/index.ts
|
|
14
|
+
function needsTranslation(entry, locale) {
|
|
15
|
+
const fallbacks = entry._metadata?.localeFallbacksApplied;
|
|
16
|
+
if (!fallbacks) return false;
|
|
17
|
+
if (locale !== void 0 && locale !== "" && entry._metadata?.requestedLocale !== locale) {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
return Object.keys(fallbacks).length > 0;
|
|
21
|
+
}
|
|
22
|
+
chunkMWMSFIWN_cjs.__name(needsTranslation, "needsTranslation");
|
|
23
|
+
function getFallbackFields(entry) {
|
|
24
|
+
return entry._metadata?.localeFallbacksApplied ?? {};
|
|
25
|
+
}
|
|
26
|
+
chunkMWMSFIWN_cjs.__name(getFallbackFields, "getFallbackFields");
|
|
27
|
+
function isFieldFallback(entry, fieldName) {
|
|
28
|
+
const fallbacks = entry._metadata?.localeFallbacksApplied;
|
|
29
|
+
return fallbacks ? fieldName in fallbacks : false;
|
|
30
|
+
}
|
|
31
|
+
chunkMWMSFIWN_cjs.__name(isFieldFallback, "isFieldFallback");
|
|
32
|
+
function getFieldFallbackLocale(entry, fieldName) {
|
|
33
|
+
const fallbacks = entry._metadata?.localeFallbacksApplied;
|
|
34
|
+
return fallbacks?.[fieldName] ?? null;
|
|
35
|
+
}
|
|
36
|
+
chunkMWMSFIWN_cjs.__name(getFieldFallbackLocale, "getFieldFallbackLocale");
|
|
37
|
+
function buildLanguageSwitcher(entry, options) {
|
|
38
|
+
const availableLocales = entry._metadata?.availableLocales ?? [];
|
|
39
|
+
const defaultLocale = entry._metadata?.defaultLocale;
|
|
40
|
+
return availableLocales.filter((locale) => {
|
|
41
|
+
if (options.showArchived !== true && locale.status === "archived") {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
return true;
|
|
45
|
+
}).map((locale) => ({
|
|
46
|
+
code: locale.code,
|
|
47
|
+
label: options.getDisplayName?.(locale.code) ?? locale.code,
|
|
48
|
+
status: locale.status,
|
|
49
|
+
isCurrent: locale.code === options.currentLocale,
|
|
50
|
+
isDefault: locale.code === defaultLocale,
|
|
51
|
+
hasContent: locale.status !== "archived"
|
|
52
|
+
}));
|
|
53
|
+
}
|
|
54
|
+
chunkMWMSFIWN_cjs.__name(buildLanguageSwitcher, "buildLanguageSwitcher");
|
|
55
|
+
function getAvailableLocaleCodes(entry) {
|
|
56
|
+
return entry._metadata?.availableLocales?.map((l) => l.code) ?? [];
|
|
57
|
+
}
|
|
58
|
+
chunkMWMSFIWN_cjs.__name(getAvailableLocaleCodes, "getAvailableLocaleCodes");
|
|
59
|
+
var LOCALE_STATUS_PUBLISHED = "published";
|
|
60
|
+
function getPublishedLocaleCodes(entry) {
|
|
61
|
+
return entry._metadata?.availableLocales?.filter((l) => l.status === LOCALE_STATUS_PUBLISHED).map((l) => l.code) ?? [];
|
|
62
|
+
}
|
|
63
|
+
chunkMWMSFIWN_cjs.__name(getPublishedLocaleCodes, "getPublishedLocaleCodes");
|
|
64
|
+
function hasLocale(entry, localeCode) {
|
|
65
|
+
return entry._metadata?.availableLocales?.some((l) => l.code === localeCode) ?? false;
|
|
66
|
+
}
|
|
67
|
+
chunkMWMSFIWN_cjs.__name(hasLocale, "hasLocale");
|
|
68
|
+
function isPublishedInLocale(entry, localeCode) {
|
|
69
|
+
return entry._metadata?.availableLocales?.some(
|
|
70
|
+
(l) => l.code === localeCode && l.status === LOCALE_STATUS_PUBLISHED
|
|
71
|
+
) ?? false;
|
|
72
|
+
}
|
|
73
|
+
chunkMWMSFIWN_cjs.__name(isPublishedInLocale, "isPublishedInLocale");
|
|
74
|
+
function getDefaultLocale(entry) {
|
|
75
|
+
return entry._metadata?.defaultLocale ?? null;
|
|
76
|
+
}
|
|
77
|
+
chunkMWMSFIWN_cjs.__name(getDefaultLocale, "getDefaultLocale");
|
|
78
|
+
function getRequestedLocale(entry) {
|
|
79
|
+
return entry._metadata?.requestedLocale ?? null;
|
|
80
|
+
}
|
|
81
|
+
chunkMWMSFIWN_cjs.__name(getRequestedLocale, "getRequestedLocale");
|
|
82
|
+
function estimateTranslationCompleteness(entry, localizedFieldNames) {
|
|
83
|
+
const result = {};
|
|
84
|
+
const availableLocales = entry._metadata?.availableLocales ?? [];
|
|
85
|
+
const fallbacks = entry._metadata?.localeFallbacksApplied ?? {};
|
|
86
|
+
const requestedLocale = entry._metadata?.requestedLocale;
|
|
87
|
+
const defaultLocale = entry._metadata?.defaultLocale;
|
|
88
|
+
if (defaultLocale !== void 0 && defaultLocale !== "") {
|
|
89
|
+
result[defaultLocale] = 100;
|
|
90
|
+
}
|
|
91
|
+
if (requestedLocale !== void 0 && requestedLocale !== "" && requestedLocale !== defaultLocale) {
|
|
92
|
+
const fallbackCount = Object.keys(fallbacks).filter((f) => localizedFieldNames.includes(f)).length;
|
|
93
|
+
const totalFields = localizedFieldNames.length;
|
|
94
|
+
const translatedFields = totalFields - fallbackCount;
|
|
95
|
+
result[requestedLocale] = totalFields > 0 ? Math.round(translatedFields / totalFields * 100) : 100;
|
|
96
|
+
}
|
|
97
|
+
for (const locale of availableLocales) {
|
|
98
|
+
if (!(locale.code in result)) {
|
|
99
|
+
result[locale.code] = locale.status === LOCALE_STATUS_PUBLISHED ? 50 : 0;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return result;
|
|
103
|
+
}
|
|
104
|
+
chunkMWMSFIWN_cjs.__name(estimateTranslationCompleteness, "estimateTranslationCompleteness");
|
|
105
|
+
function getLocalizedField(entry, fieldName, localeCode) {
|
|
106
|
+
const localizations = entry._metadata?.localizations;
|
|
107
|
+
if (!localizations) return null;
|
|
108
|
+
const localeContent = localizations[localeCode];
|
|
109
|
+
return localeContent?.[fieldName] ?? null;
|
|
110
|
+
}
|
|
111
|
+
chunkMWMSFIWN_cjs.__name(getLocalizedField, "getLocalizedField");
|
|
112
|
+
function getAllLocalizedValues(entry, fieldName) {
|
|
113
|
+
const result = {};
|
|
114
|
+
const defaultLocale = entry._metadata?.defaultLocale;
|
|
115
|
+
if (defaultLocale !== void 0 && defaultLocale !== "" && fieldName in entry) {
|
|
116
|
+
result[defaultLocale] = entry[fieldName];
|
|
117
|
+
}
|
|
118
|
+
const localizations = entry._metadata?.localizations;
|
|
119
|
+
if (localizations) {
|
|
120
|
+
for (const [localeCode, content] of Object.entries(localizations)) {
|
|
121
|
+
const localeContent = content;
|
|
122
|
+
if (fieldName in localeContent) {
|
|
123
|
+
result[localeCode] = localeContent[fieldName];
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
return result;
|
|
128
|
+
}
|
|
129
|
+
chunkMWMSFIWN_cjs.__name(getAllLocalizedValues, "getAllLocalizedValues");
|
|
130
|
+
var localeHelpers = {
|
|
131
|
+
needsTranslation,
|
|
132
|
+
getFallbackFields,
|
|
133
|
+
isFieldFallback,
|
|
134
|
+
getFieldFallbackLocale,
|
|
135
|
+
buildLanguageSwitcher,
|
|
136
|
+
getAvailableLocaleCodes,
|
|
137
|
+
getPublishedLocaleCodes,
|
|
138
|
+
hasLocale,
|
|
139
|
+
isPublishedInLocale,
|
|
140
|
+
getDefaultLocale,
|
|
141
|
+
getRequestedLocale,
|
|
142
|
+
estimateTranslationCompleteness,
|
|
143
|
+
getLocalizedField,
|
|
144
|
+
getAllLocalizedValues
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
// src/index.ts
|
|
148
|
+
var VERSION = "__VERSION__";
|
|
149
|
+
|
|
150
|
+
Object.defineProperty(exports, "defineAssetType", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function () { return chunkFJK7ZWKK_cjs.defineAssetType; }
|
|
153
|
+
});
|
|
154
|
+
Object.defineProperty(exports, "defineComponent", {
|
|
155
|
+
enumerable: true,
|
|
156
|
+
get: function () { return chunkFJK7ZWKK_cjs.defineComponent; }
|
|
157
|
+
});
|
|
158
|
+
Object.defineProperty(exports, "defineContentType", {
|
|
159
|
+
enumerable: true,
|
|
160
|
+
get: function () { return chunkFJK7ZWKK_cjs.defineContentType; }
|
|
161
|
+
});
|
|
162
|
+
Object.defineProperty(exports, "defineQuery", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function () { return chunkFJK7ZWKK_cjs.defineQuery; }
|
|
165
|
+
});
|
|
166
|
+
Object.defineProperty(exports, "defineSchema", {
|
|
167
|
+
enumerable: true,
|
|
168
|
+
get: function () { return chunkFJK7ZWKK_cjs.defineSchema; }
|
|
169
|
+
});
|
|
170
|
+
Object.defineProperty(exports, "defineSettingsGroup", {
|
|
171
|
+
enumerable: true,
|
|
172
|
+
get: function () { return chunkFJK7ZWKK_cjs.defineSettingsGroup; }
|
|
173
|
+
});
|
|
174
|
+
Object.defineProperty(exports, "defineSingleton", {
|
|
175
|
+
enumerable: true,
|
|
176
|
+
get: function () { return chunkFJK7ZWKK_cjs.defineSingleton; }
|
|
177
|
+
});
|
|
178
|
+
Object.defineProperty(exports, "defineSingletonContentType", {
|
|
179
|
+
enumerable: true,
|
|
180
|
+
get: function () { return chunkFJK7ZWKK_cjs.defineSingletonContentType; }
|
|
181
|
+
});
|
|
182
|
+
Object.defineProperty(exports, "fields", {
|
|
183
|
+
enumerable: true,
|
|
184
|
+
get: function () { return chunkFJK7ZWKK_cjs.fields; }
|
|
185
|
+
});
|
|
186
|
+
Object.defineProperty(exports, "fieldset", {
|
|
187
|
+
enumerable: true,
|
|
188
|
+
get: function () { return chunkFJK7ZWKK_cjs.fieldset; }
|
|
189
|
+
});
|
|
190
|
+
Object.defineProperty(exports, "schemaToJSON", {
|
|
191
|
+
enumerable: true,
|
|
192
|
+
get: function () { return chunkFJK7ZWKK_cjs.schemaToJSON; }
|
|
193
|
+
});
|
|
194
|
+
Object.defineProperty(exports, "AdhocQueryBuilder", {
|
|
195
|
+
enumerable: true,
|
|
196
|
+
get: function () { return chunk7W4MJXQ4_cjs.AdhocQueryBuilder; }
|
|
197
|
+
});
|
|
198
|
+
Object.defineProperty(exports, "AdhocQueryClient", {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
get: function () { return chunk7W4MJXQ4_cjs.AdhocQueryClient; }
|
|
201
|
+
});
|
|
202
|
+
Object.defineProperty(exports, "AssetClient", {
|
|
203
|
+
enumerable: true,
|
|
204
|
+
get: function () { return chunk7W4MJXQ4_cjs.AssetClient; }
|
|
205
|
+
});
|
|
206
|
+
Object.defineProperty(exports, "AssetFileBuilder", {
|
|
207
|
+
enumerable: true,
|
|
208
|
+
get: function () { return chunk7W4MJXQ4_cjs.AssetFileBuilder; }
|
|
209
|
+
});
|
|
210
|
+
Object.defineProperty(exports, "AssetUploadBuilder", {
|
|
211
|
+
enumerable: true,
|
|
212
|
+
get: function () { return chunk7W4MJXQ4_cjs.AssetUploadBuilder; }
|
|
213
|
+
});
|
|
214
|
+
Object.defineProperty(exports, "AuthenticationError", {
|
|
215
|
+
enumerable: true,
|
|
216
|
+
get: function () { return chunk7W4MJXQ4_cjs.AuthenticationError; }
|
|
217
|
+
});
|
|
218
|
+
Object.defineProperty(exports, "AuthorizationError", {
|
|
219
|
+
enumerable: true,
|
|
220
|
+
get: function () { return chunk7W4MJXQ4_cjs.AuthorizationError; }
|
|
221
|
+
});
|
|
222
|
+
Object.defineProperty(exports, "AutocompleteBuilder", {
|
|
223
|
+
enumerable: true,
|
|
224
|
+
get: function () { return chunk7W4MJXQ4_cjs.AutocompleteBuilder; }
|
|
225
|
+
});
|
|
226
|
+
Object.defineProperty(exports, "BaseValidationError", {
|
|
227
|
+
enumerable: true,
|
|
228
|
+
get: function () { return chunk7W4MJXQ4_cjs.BaseValidationError; }
|
|
229
|
+
});
|
|
230
|
+
Object.defineProperty(exports, "BatchBuilder", {
|
|
231
|
+
enumerable: true,
|
|
232
|
+
get: function () { return chunk7W4MJXQ4_cjs.BatchBuilder; }
|
|
233
|
+
});
|
|
234
|
+
Object.defineProperty(exports, "BatchClient", {
|
|
235
|
+
enumerable: true,
|
|
236
|
+
get: function () { return chunk7W4MJXQ4_cjs.BatchClient; }
|
|
237
|
+
});
|
|
238
|
+
Object.defineProperty(exports, "ConnectionError", {
|
|
239
|
+
enumerable: true,
|
|
240
|
+
get: function () { return chunk7W4MJXQ4_cjs.ConnectionError; }
|
|
241
|
+
});
|
|
242
|
+
Object.defineProperty(exports, "ContentByIdBuilder", {
|
|
243
|
+
enumerable: true,
|
|
244
|
+
get: function () { return chunk7W4MJXQ4_cjs.ContentByIdBuilder; }
|
|
245
|
+
});
|
|
246
|
+
Object.defineProperty(exports, "ContentClient", {
|
|
247
|
+
enumerable: true,
|
|
248
|
+
get: function () { return chunk7W4MJXQ4_cjs.ContentClient; }
|
|
249
|
+
});
|
|
250
|
+
Object.defineProperty(exports, "ContentQueryBuilder", {
|
|
251
|
+
enumerable: true,
|
|
252
|
+
get: function () { return chunk7W4MJXQ4_cjs.ContentQueryBuilder; }
|
|
253
|
+
});
|
|
254
|
+
Object.defineProperty(exports, "ErrorMapper", {
|
|
255
|
+
enumerable: true,
|
|
256
|
+
get: function () { return chunk7W4MJXQ4_cjs.ErrorMapper; }
|
|
257
|
+
});
|
|
258
|
+
Object.defineProperty(exports, "FileUploadError", {
|
|
259
|
+
enumerable: true,
|
|
260
|
+
get: function () { return chunk7W4MJXQ4_cjs.FileUploadError; }
|
|
261
|
+
});
|
|
262
|
+
Object.defineProperty(exports, "FileValidationError", {
|
|
263
|
+
enumerable: true,
|
|
264
|
+
get: function () { return chunk7W4MJXQ4_cjs.FileValidationError; }
|
|
265
|
+
});
|
|
266
|
+
Object.defineProperty(exports, "HttpClient", {
|
|
267
|
+
enumerable: true,
|
|
268
|
+
get: function () { return chunk7W4MJXQ4_cjs.HttpClient; }
|
|
269
|
+
});
|
|
270
|
+
Object.defineProperty(exports, "InvalidApiKeyError", {
|
|
271
|
+
enumerable: true,
|
|
272
|
+
get: function () { return chunk7W4MJXQ4_cjs.InvalidApiKeyError; }
|
|
273
|
+
});
|
|
274
|
+
Object.defineProperty(exports, "InvalidFieldTypeError", {
|
|
275
|
+
enumerable: true,
|
|
276
|
+
get: function () { return chunk7W4MJXQ4_cjs.InvalidFieldTypeError; }
|
|
277
|
+
});
|
|
278
|
+
Object.defineProperty(exports, "InvalidPayloadError", {
|
|
279
|
+
enumerable: true,
|
|
280
|
+
get: function () { return chunk7W4MJXQ4_cjs.InvalidPayloadError; }
|
|
281
|
+
});
|
|
282
|
+
Object.defineProperty(exports, "MethodNotAllowedError", {
|
|
283
|
+
enumerable: true,
|
|
284
|
+
get: function () { return chunk7W4MJXQ4_cjs.MethodNotAllowedError; }
|
|
285
|
+
});
|
|
286
|
+
Object.defineProperty(exports, "MissingApiKeyError", {
|
|
287
|
+
enumerable: true,
|
|
288
|
+
get: function () { return chunk7W4MJXQ4_cjs.MissingApiKeyError; }
|
|
289
|
+
});
|
|
290
|
+
Object.defineProperty(exports, "NetworkError", {
|
|
291
|
+
enumerable: true,
|
|
292
|
+
get: function () { return chunk7W4MJXQ4_cjs.NetworkError; }
|
|
293
|
+
});
|
|
294
|
+
Object.defineProperty(exports, "PayloadTooLargeError", {
|
|
295
|
+
enumerable: true,
|
|
296
|
+
get: function () { return chunk7W4MJXQ4_cjs.PayloadTooLargeError; }
|
|
297
|
+
});
|
|
298
|
+
Object.defineProperty(exports, "PlanFeatureUnavailableError", {
|
|
299
|
+
enumerable: true,
|
|
300
|
+
get: function () { return chunk7W4MJXQ4_cjs.PlanFeatureUnavailableError; }
|
|
301
|
+
});
|
|
302
|
+
Object.defineProperty(exports, "RateLimitError", {
|
|
303
|
+
enumerable: true,
|
|
304
|
+
get: function () { return chunk7W4MJXQ4_cjs.RateLimitError; }
|
|
305
|
+
});
|
|
306
|
+
Object.defineProperty(exports, "ReadOnlyKeyError", {
|
|
307
|
+
enumerable: true,
|
|
308
|
+
get: function () { return chunk7W4MJXQ4_cjs.ReadOnlyKeyError; }
|
|
309
|
+
});
|
|
310
|
+
Object.defineProperty(exports, "RequiredFieldError", {
|
|
311
|
+
enumerable: true,
|
|
312
|
+
get: function () { return chunk7W4MJXQ4_cjs.RequiredFieldError; }
|
|
313
|
+
});
|
|
314
|
+
Object.defineProperty(exports, "ResourceConflictError", {
|
|
315
|
+
enumerable: true,
|
|
316
|
+
get: function () { return chunk7W4MJXQ4_cjs.ResourceConflictError; }
|
|
317
|
+
});
|
|
318
|
+
Object.defineProperty(exports, "ResourceExpiredError", {
|
|
319
|
+
enumerable: true,
|
|
320
|
+
get: function () { return chunk7W4MJXQ4_cjs.ResourceExpiredError; }
|
|
321
|
+
});
|
|
322
|
+
Object.defineProperty(exports, "ResourceNotFoundError", {
|
|
323
|
+
enumerable: true,
|
|
324
|
+
get: function () { return chunk7W4MJXQ4_cjs.ResourceNotFoundError; }
|
|
325
|
+
});
|
|
326
|
+
Object.defineProperty(exports, "SDKError", {
|
|
327
|
+
enumerable: true,
|
|
328
|
+
get: function () { return chunk7W4MJXQ4_cjs.SDKError; }
|
|
329
|
+
});
|
|
330
|
+
Object.defineProperty(exports, "SchemaValidationError", {
|
|
331
|
+
enumerable: true,
|
|
332
|
+
get: function () { return chunk7W4MJXQ4_cjs.SchemaValidationError; }
|
|
333
|
+
});
|
|
334
|
+
Object.defineProperty(exports, "SearchBuilder", {
|
|
335
|
+
enumerable: true,
|
|
336
|
+
get: function () { return chunk7W4MJXQ4_cjs.SearchBuilder; }
|
|
337
|
+
});
|
|
338
|
+
Object.defineProperty(exports, "SearchClient", {
|
|
339
|
+
enumerable: true,
|
|
340
|
+
get: function () { return chunk7W4MJXQ4_cjs.SearchClient; }
|
|
341
|
+
});
|
|
342
|
+
Object.defineProperty(exports, "ServerError", {
|
|
343
|
+
enumerable: true,
|
|
344
|
+
get: function () { return chunk7W4MJXQ4_cjs.ServerError; }
|
|
345
|
+
});
|
|
346
|
+
Object.defineProperty(exports, "ServiceIndeterminateError", {
|
|
347
|
+
enumerable: true,
|
|
348
|
+
get: function () { return chunk7W4MJXQ4_cjs.ServiceIndeterminateError; }
|
|
349
|
+
});
|
|
350
|
+
Object.defineProperty(exports, "SettingsClient", {
|
|
351
|
+
enumerable: true,
|
|
352
|
+
get: function () { return chunk7W4MJXQ4_cjs.SettingsClient; }
|
|
353
|
+
});
|
|
354
|
+
Object.defineProperty(exports, "SimilarBuilder", {
|
|
355
|
+
enumerable: true,
|
|
356
|
+
get: function () { return chunk7W4MJXQ4_cjs.SimilarBuilder; }
|
|
357
|
+
});
|
|
358
|
+
Object.defineProperty(exports, "SingletonClient", {
|
|
359
|
+
enumerable: true,
|
|
360
|
+
get: function () { return chunk7W4MJXQ4_cjs.SingletonClient; }
|
|
361
|
+
});
|
|
362
|
+
Object.defineProperty(exports, "TimeoutError", {
|
|
363
|
+
enumerable: true,
|
|
364
|
+
get: function () { return chunk7W4MJXQ4_cjs.TimeoutError; }
|
|
365
|
+
});
|
|
366
|
+
Object.defineProperty(exports, "TransactionRolledBackError", {
|
|
367
|
+
enumerable: true,
|
|
368
|
+
get: function () { return chunk7W4MJXQ4_cjs.TransactionRolledBackError; }
|
|
369
|
+
});
|
|
370
|
+
Object.defineProperty(exports, "TypedRelyIOClient", {
|
|
371
|
+
enumerable: true,
|
|
372
|
+
get: function () { return chunk7W4MJXQ4_cjs.TypedRelyIOClient; }
|
|
373
|
+
});
|
|
374
|
+
Object.defineProperty(exports, "UnknownContractError", {
|
|
375
|
+
enumerable: true,
|
|
376
|
+
get: function () { return chunk7W4MJXQ4_cjs.UnknownContractError; }
|
|
377
|
+
});
|
|
378
|
+
Object.defineProperty(exports, "UsageQuotaExceededError", {
|
|
379
|
+
enumerable: true,
|
|
380
|
+
get: function () { return chunk7W4MJXQ4_cjs.UsageQuotaExceededError; }
|
|
381
|
+
});
|
|
382
|
+
Object.defineProperty(exports, "ValidationError", {
|
|
383
|
+
enumerable: true,
|
|
384
|
+
get: function () { return chunk7W4MJXQ4_cjs.ValidationError; }
|
|
385
|
+
});
|
|
386
|
+
Object.defineProperty(exports, "createClient", {
|
|
387
|
+
enumerable: true,
|
|
388
|
+
get: function () { return chunk7W4MJXQ4_cjs.createClient; }
|
|
389
|
+
});
|
|
390
|
+
Object.defineProperty(exports, "default", {
|
|
391
|
+
enumerable: true,
|
|
392
|
+
get: function () { return chunk7W4MJXQ4_cjs.createClient; }
|
|
393
|
+
});
|
|
394
|
+
Object.defineProperty(exports, "entityTagOf", {
|
|
395
|
+
enumerable: true,
|
|
396
|
+
get: function () { return chunk7W4MJXQ4_cjs.entityTagOf; }
|
|
397
|
+
});
|
|
398
|
+
Object.defineProperty(exports, "isAssetEntry", {
|
|
399
|
+
enumerable: true,
|
|
400
|
+
get: function () { return chunk7W4MJXQ4_cjs.isAssetEntry; }
|
|
401
|
+
});
|
|
402
|
+
Object.defineProperty(exports, "isResourceNotFound", {
|
|
403
|
+
enumerable: true,
|
|
404
|
+
get: function () { return chunk7W4MJXQ4_cjs.isResourceNotFound; }
|
|
405
|
+
});
|
|
406
|
+
Object.defineProperty(exports, "validateFile", {
|
|
407
|
+
enumerable: true,
|
|
408
|
+
get: function () { return chunk7W4MJXQ4_cjs.validateFile; }
|
|
409
|
+
});
|
|
410
|
+
Object.defineProperty(exports, "camelToSnake", {
|
|
411
|
+
enumerable: true,
|
|
412
|
+
get: function () { return chunkHT6NFRM2_cjs.camelToSnake; }
|
|
413
|
+
});
|
|
414
|
+
Object.defineProperty(exports, "createDeferred", {
|
|
415
|
+
enumerable: true,
|
|
416
|
+
get: function () { return chunkHT6NFRM2_cjs.createDeferred; }
|
|
417
|
+
});
|
|
418
|
+
Object.defineProperty(exports, "debounce", {
|
|
419
|
+
enumerable: true,
|
|
420
|
+
get: function () { return chunkHT6NFRM2_cjs.debounce; }
|
|
421
|
+
});
|
|
422
|
+
Object.defineProperty(exports, "deepClone", {
|
|
423
|
+
enumerable: true,
|
|
424
|
+
get: function () { return chunkHT6NFRM2_cjs.deepClone; }
|
|
425
|
+
});
|
|
426
|
+
Object.defineProperty(exports, "generateId", {
|
|
427
|
+
enumerable: true,
|
|
428
|
+
get: function () { return chunkHT6NFRM2_cjs.generateId; }
|
|
429
|
+
});
|
|
430
|
+
Object.defineProperty(exports, "isBrowser", {
|
|
431
|
+
enumerable: true,
|
|
432
|
+
get: function () { return chunkHT6NFRM2_cjs.isBrowser; }
|
|
433
|
+
});
|
|
434
|
+
Object.defineProperty(exports, "isNode", {
|
|
435
|
+
enumerable: true,
|
|
436
|
+
get: function () { return chunkHT6NFRM2_cjs.isNode; }
|
|
437
|
+
});
|
|
438
|
+
Object.defineProperty(exports, "isPlainObject", {
|
|
439
|
+
enumerable: true,
|
|
440
|
+
get: function () { return chunkHT6NFRM2_cjs.isPlainObject; }
|
|
441
|
+
});
|
|
442
|
+
Object.defineProperty(exports, "isValidEmail", {
|
|
443
|
+
enumerable: true,
|
|
444
|
+
get: function () { return chunkHT6NFRM2_cjs.isValidEmail; }
|
|
445
|
+
});
|
|
446
|
+
Object.defineProperty(exports, "isValidUrl", {
|
|
447
|
+
enumerable: true,
|
|
448
|
+
get: function () { return chunkHT6NFRM2_cjs.isValidUrl; }
|
|
449
|
+
});
|
|
450
|
+
Object.defineProperty(exports, "mergeDeep", {
|
|
451
|
+
enumerable: true,
|
|
452
|
+
get: function () { return chunkHT6NFRM2_cjs.mergeDeep; }
|
|
453
|
+
});
|
|
454
|
+
Object.defineProperty(exports, "omit", {
|
|
455
|
+
enumerable: true,
|
|
456
|
+
get: function () { return chunkHT6NFRM2_cjs.omit; }
|
|
457
|
+
});
|
|
458
|
+
Object.defineProperty(exports, "pick", {
|
|
459
|
+
enumerable: true,
|
|
460
|
+
get: function () { return chunkHT6NFRM2_cjs.pick; }
|
|
461
|
+
});
|
|
462
|
+
Object.defineProperty(exports, "retry", {
|
|
463
|
+
enumerable: true,
|
|
464
|
+
get: function () { return chunkHT6NFRM2_cjs.retry; }
|
|
465
|
+
});
|
|
466
|
+
Object.defineProperty(exports, "sleep", {
|
|
467
|
+
enumerable: true,
|
|
468
|
+
get: function () { return chunkHT6NFRM2_cjs.sleep; }
|
|
469
|
+
});
|
|
470
|
+
Object.defineProperty(exports, "snakeToCamel", {
|
|
471
|
+
enumerable: true,
|
|
472
|
+
get: function () { return chunkHT6NFRM2_cjs.snakeToCamel; }
|
|
473
|
+
});
|
|
474
|
+
Object.defineProperty(exports, "throttle", {
|
|
475
|
+
enumerable: true,
|
|
476
|
+
get: function () { return chunkHT6NFRM2_cjs.throttle; }
|
|
477
|
+
});
|
|
478
|
+
Object.defineProperty(exports, "toSafeString", {
|
|
479
|
+
enumerable: true,
|
|
480
|
+
get: function () { return chunkHT6NFRM2_cjs.toSafeString; }
|
|
481
|
+
});
|
|
482
|
+
exports.VERSION = VERSION;
|
|
483
|
+
exports.buildLanguageSwitcher = buildLanguageSwitcher;
|
|
484
|
+
exports.estimateTranslationCompleteness = estimateTranslationCompleteness;
|
|
485
|
+
exports.getAllLocalizedValues = getAllLocalizedValues;
|
|
486
|
+
exports.getAvailableLocaleCodes = getAvailableLocaleCodes;
|
|
487
|
+
exports.getDefaultLocale = getDefaultLocale;
|
|
488
|
+
exports.getFallbackFields = getFallbackFields;
|
|
489
|
+
exports.getFieldFallbackLocale = getFieldFallbackLocale;
|
|
490
|
+
exports.getLocalizedField = getLocalizedField;
|
|
491
|
+
exports.getPublishedLocaleCodes = getPublishedLocaleCodes;
|
|
492
|
+
exports.getRequestedLocale = getRequestedLocale;
|
|
493
|
+
exports.hasLocale = hasLocale;
|
|
494
|
+
exports.isFieldFallback = isFieldFallback;
|
|
495
|
+
exports.isPublishedInLocale = isPublishedInLocale;
|
|
496
|
+
exports.localeHelpers = localeHelpers;
|
|
497
|
+
exports.needsTranslation = needsTranslation;
|
|
498
|
+
//# sourceMappingURL=index.cjs.map
|
|
499
|
+
//# sourceMappingURL=index.cjs.map
|